07-23-2010 09:08 PM
I have a PCIe-6343 and I want to be able to input different voltage ranges on different input channels simultaneously, specifically with the user being able to select ranges for each channel when needed. So ideally I may want to have AI 0 with -10 -10, AI 1 with -5 to 5, AI 2 with -1 to 1, and AI 3 with -0.250 to 0.250. Does anyone know if this configuration is possible? I tried to set an array for the min and max values and it did not work.
Solved! Go to Solution.
07-23-2010 10:12 PM
Yes, you can set different ranges and yes you can use arrays. Place a Create Task outside a for loop. Place a Create Channel inside the loop. Wire your range arrays through the loop.
p.s. It's always best to post your code when you say 'it does not work'. That is not a good description and can't fix what we cannot see.
07-23-2010 10:47 PM
And be sure to use a shift register for the task.
07-24-2010 09:22 PM
Thanks for your Reply, I am new to the forum so going forward I will ensure to put a screen shot of my program or attach a .vi
Here is my sample still not sure how to configure the array
07-24-2010 09:55 PM - edited 07-24-2010 09:57 PM
Nasty, nasty stacked sequence structure. Get rid of that or risk falling to the dark side.
And of course your DAQmx Read would have to be N Channels.
07-28-2010 11:42 AM
Thank you for this reply. That definately helps, in this template you have provided it appears that the channels are "always on". How would I go about making it work so that the channels only the channels that were "on" are passed into the for loop?
07-28-2010 12:14 PM
The only channels that are enabled are the ones that you decide to place in the array. The only ranges that are enabled are the ones you decide to place in their arrays. How you decide the populate the arrays is up to you. I would suggest a front end screen where you are able to select a single channel and range and click to add that to a list.