From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get amount of wired physical channels?

Solved!
Go to solution

Hi,

I need to create a subVI, and in that subVi it is important to know the amount of physical channels wired to the input of that subVI.

Is the only way to do that writing another 'string search and count'-subVI, which examines the 'physical channels'-wire? Something that searches for any ':' and ',' and which processes that information then.

Or is there a better way to do it?

Or has someone already written such a subVI, which counts the amount of wired channels?

 

Thank a lot

Andy

0 Kudos
Message 1 of 3
(3,077 Views)
Solution
Accepted by topic author Andband
If you are asking about knowing how many channels are in a DAQmx physical channel? If so, just wire the physical channel to the DAQmx Unflatten Channel String. You'll get an array out. The array size function will give you the number of channels.
Message 2 of 3
(3,066 Views)

Yeah, that works perfect and was exactly that what I wanted 🙂

You guys really know your stuff!

 

0 Kudos
Message 3 of 3
(3,043 Views)