Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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
(3,227 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
(3,216 Views)