06-07-2006 09:13 AM
06-08-2006 12:10 PM
Hello nyc,
I have opened this example, and it writes to 8 digital lines because the array
called writeArray is only of size 8, and the textbox on the form has line0:7
inside it. To make this application work for 24 lines you need to first
make the writeArray of size 24 and write 24 values inside it. You then
need to change the channel string specified in the textbox. This textbox
string could be either:
DevX/port0/line0:7, DevX/port1/line0:7, DevX/port2/line0:7
or
DevX/port0:2
where X is your device number. The reason why you cannot specify
DevX/port0/line0:23 is because this device has 3 ports (0, 1, and 2) each with
8 lines.
I hope this clarifies things.
Jesse O.
Applications Engineering
National Instruments
06-08-2006 01:16 PM
Jesse,
Thanks.
The size of writeArray cannot be changed to something other than 8.
The function DAQmxWriteDigitalLines(taskHandle, 1, 1, 10#, DAQmx_Val_GroupByChannel, writeArray(0), sampsPerChanWritten, 0) requires that writeArray be a byte in size.
So, is my only choice to use DAQmxWriteRaw( ) ? If so, how do I use it?
06-09-2006 09:32 AM
06-09-2006 10:20 AM