LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is their a way to find out how many channels in DAQmx code?

Hi I am using DAQmx VI's to aquire voltage and temperature.  Is there a way to know how many channels were chosen from each individual Create Channel VI without looking at the physical channels input control?  For example with the physical channel input of "cDAQ1Mod2/ai0:3" I know I have 4 channels selected, however, I want to use the number of channels that were selected my the user which can change depending on the user input.  

0 Kudos
Message 1 of 2
(2,950 Views)

You can simply use the Task property, Number of Channels. Use one after the voltage tasks and one after the temperature task. The rest is just subtaction.

Message 2 of 2
(2,939 Views)