LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Merging two Daqmx-channels

Solved!
Go to solution

Hello everyone.

 

Is it possible to merge two daqmx channel controller to one channel property.

I have two channel controls. One with AO1:3 and the second with AO5. Since my card only allows one task I need to combine the channels.

 

I found the property node 'Value' which lists them as strings, but since these channels are stored in a class I can not create a property node. Also combining strings as channel names seems not the most efficient way.

 

Is there a function that will merge channels?

0 Kudos
Message 1 of 4
(3,766 Views)
Solution
Accepted by topic author s.h._tech

Create channels one by one in a For Loop where you put the task wire onto a shift register so the channels get added to the same task.

Message 2 of 4
(3,748 Views)

You can just write them one by one, or you can hold control in the "Browse" window to select channels.

You can repeatedly call Create Virtual Channel with a shift register holding a task reference, as RavensFan pointed out (example here, sort of. This shows setting multiple properties on different channels, but you could do it directly for the physical channel input)

Or there is a VI that does directly what you asked for: DAQmx Flatten Channel String


GCentral
Message 3 of 4
(3,740 Views)

So simple, yet I did not see it

0 Kudos
Message 4 of 4
(3,688 Views)