LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert an array of DAQmx channels into a a single channel list

Hello,
 
I have a stupid question: I have an array consisting of DAQmx channels and I want to convert them in a channel list compatible with the input "task/channel in" input of DAQmx soubroutines. How to do that?
 
Thanks
 
Jiri
0 Kudos
Message 1 of 8
(5,077 Views)
If there is a set number of lines, aka set number of channels, you could set up a while loop that indexes the array and pulls out each line and puts it into an indicator.  That you would have each line seperated. 

I do not know if it would work for your program, but you could use clusters instead of the array and then use the bundle and unbundle by name to easily seperate the different channels.

If you have more questions, please post them.

Kenny
Kenny

0 Kudos
Message 2 of 8
(5,061 Views)
Not sure how or why you would have an array of DAQmx channels... One DAQmx wire can have any number of channels associated with it (provided they are all from the same device, I have never tried it accross multiple devices).  For example, if I want channels 0-7 on Dev1, I start with a constant and ctrl-select all the channels I want in that constant.
0 Kudos
Message 3 of 8
(5,055 Views)
Unfortunately, the answers were not very usesful for my problem.
 
I need to measure simultaneously five channels. They must be specified them by five individual controls (not by a single control using ctrl key, because in some other part of the program, I need to measure some of these channels individually).
 
So the question is: how to join several wires with a name of a single channel into a single wire with a channel list?
 
The software is prepared for a client, so I need that the channels are specified in the front pannel (and not by some constants in the block diagram).
 
Thanks a lot
 
Jiri
0 Kudos
Message 4 of 8
(5,047 Views)
Unfortunately, the answers were not very usesful for my problem.
 
I need to measure simultaneously five channels. They must be specified them by five individual controls (not by a single control using ctrl key, because in some other part of the program, I need to measure some of these channels individually).
 
So the question is: how to join several wires with a name of a single channel into a single wire with a channel list?
 
The software is prepared for a client, so I need that the channels are specified in the front pannel (and not by some constants in the block diagram).
 
Thanks a lot
 
Jiri
0 Kudos
Message 5 of 8
(5,049 Views)
Try something like the attached. In most cases, you can tread a channel name as a string.
Message 6 of 8
(5,045 Views)
Hi,
 
Also have a look at Daqmx flatten to string .vi
 
Message 7 of 8
(5,026 Views)
Yes, that's exactly what I needed. Thank you a lot.
 
Jiri
0 Kudos
Message 8 of 8
(5,020 Views)