03-18-2008 12:58 PM
If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.
Number of Lines in Channel: 1
Number of Lines in Data: 16
Task Name: MyDigitalOutChannel
]
03-24-2008 06:48 PM
Hi JJAJoe,
This error is because your Digital Waveform has 16 lines and the DAQmx Write vi is defined to write one digital channel with multiple samples. The Analog to Digital vi represents each value of the analog waveform with n number of bits for resolution (in this case 16 bits), therefore 16 lines in the Digital Waveform. One way to get the Analog to Digital vi to work for you would be to use the Digital Signal Subset vi, and select one signal to write in the digital line. You can find that vi in the Functions palette > Programming > Waveform > Digital Waveform > Digital Signal Subset. I hope this is helpful,