LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Configuration

Hi all,
I'm using a NI DAQmx.Based on the user input i need to configure the channels programatically.
Suppose user input is (N),then N channels needs to be configuired.Could anyone please help me out
solving this? Thanks in advance.
0 Kudos
Message 1 of 2
(2,440 Views)
If all of the channels are to be configured the same (range and input configuration) and the channels are continous, then all you have to do is create the list for DAQmx Create Channel. For channels 0 through 3, the channel name would be Dev1/ai0:3. The syntax for non-continous channels (i.e. channel 1 and channel 4) would be Dev1/ai1,Dev1/ai4. I;m assuming that you're not using the DAQ Assistant for this. You have to use the actual DAQmx functions in order to change channels.
0 Kudos
Message 2 of 2
(2,433 Views)