LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI DAQmx Configuration

Hello,
I'm using a NI DAQmx.Normally the configuration would be done manually for DAQ.Rather
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,471 Views)
You can use the DAQmx Create Virtual Channel vi to add Virtual channels to a task. In you case, you want to programmatically control how many times that vi is called. If you call it twice, you would have 2 channels in your task, 3 times -> three channels. The easiest way would be to put this VI in a FOR loop in LabVIEW. The User input can be tied to the N (loop count) of the FOR loop.

Hope this helps & let me know if you need further clarification,
Regards,
Anuj d.
0 Kudos
Message 2 of 2
(2,458 Views)