11-04-2009 05:50 AM
I am trying to export 2 signals simultaneously through two different lines of NI-6536, but the result is serial output of the signals, not parallel. Please tell me what changes do I have to make to my vi. My signals are 2 .m files of boolean vectors of 0 and 1.
11-05-2009 04:09 PM
LabVIEW programming follows data flow, and your code is writing to the first line, closes that first task, then writes to the second line, then closes that second task. To have it write the data to the lines in parallel you can combine your two arrays of data into one 2-D array and pass that new array to one task (delete the other) that writes on both lines at the same time since they're on the same port. You can specify the two lines by entering "Dev1/port0/line0:1".
Since you're writing to just one port, you could write to the whole port and just pack the 2-D array with 6 more columns of 0s. Take a look at the shipping examples Cont Write Dig Port-Int Clk.vi and Write Dig Port.vi.
11-06-2009 12:56 AM
11-06-2009 09:23 AM
11-06-2009 04:08 PM
To find out how to specify multiple channels, you can look in the DAQmx Help or go to this forum thread:
how do i enter multiple channels using the DAQmx AI Voltage VI