Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set different A/D ranges for each channel in Nidaqmx

I have a PCI-6132 card and I want to collect data in warp-mode using Labview on all 4 channels with a single external trigger/clock source. I want each of the channels to operate in a different maximum voltage range, e.g. channel 0 +/- 10V, channel 1 +/- 1V, channel 2 +/- 200mV etc.
 
I can collect data on a task using "dev1/ai0:3", but I can't figure out how to set individual channel gains.
 
Do I need to set up 4 individual tasks? Can each of these tasks use the same external clock/trigger (on PFI0 and PFI7) resource?
 
Thanks -- Gerard
0 Kudos
Message 1 of 4
(3,066 Views)
You use a single task but four separate DAQmx Create Channel functions. You could also have a single DAQmx Create Channel inside a for loop and have arrays of ranges and channels.
0 Kudos
Message 2 of 4
(3,055 Views)

Hi Gerard,

You can also set up one task and just use that. This KnowledgeBase talks about how to set up different gains on the same channel, but you can easily apply the same concept to different channels.

Mark E.
Precision DC Product Support Engineer
National Instruments

0 Kudos
Message 3 of 4
(3,018 Views)
Thank you for the help. This works. -- Gerard
0 Kudos
Message 4 of 4
(2,973 Views)