02-17-2020 07:32 AM
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?
Solved! Go to Solution.
02-17-2020 08:12 AM
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.
02-17-2020 08:32 AM - edited 02-17-2020 08:37 AM
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.
02-18-2020 12:44 AM
So simple, yet I did not see it