LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx multiple lines in digital output

In my application I want to specify lines for a digital output task in seperate lines. The difficult thing about it is that I have to specify these lines each time the Sub-VI is running, i.e. each time there are different lines to write on. Also, the total number of lines is not constant. From the help I learned that I cannot specify different channels as lines for the 'DAQmx Create Channel (DO)'. This VI will only work with 1 line. The way to work round this problem suggested by the help function is to combine several of these VIs. At the moment I don't have a clue how to solve this in a simple way.
A short summary again:
Required is digital output on 0-8 single lines. These lines are obtained within the programme.
 
Does anyone know how to solve this? Why can you wire strings of multiple ports to the Create Channel VI, but not multiple lines?
 
Thanks a lot for your help!!
 
0 Kudos
Message 1 of 3
(4,939 Views)
Hi
Why don't you initialize all 9 lines but use only those selected by the user?
You can form an array of lines and use for loop to initialize and close all of them.
 
cheers
Pawel
0 Kudos
Message 2 of 3
(4,916 Views)
Thanks for the help! In the meantime I found a solution using a case structure. It took me some time but works fine. The code is attached for those who are interested. (Comments in German!)
0 Kudos
Message 3 of 3
(4,910 Views)