12-06-2012 02:13 AM
Hello
I am new to this NI LV and a have kind of a basic question. I would like to use Mathscript to generate an array of bolean numbers which will be used to control the Digital I/O lines. I am using NI 6251 USB device and the Mathscript code runs well. But I have a problem using this array to control the Digital output. So I created a simple test programme where I set the DAQ assitant to generate 4 digital outputs(P0.0 ~ P0.3) and it gives error that ".. number of channels in the data does not match the number of channels in the task..." (see attachment) . How can I solve this problem thank you.
12-06-2012 09:29 AM - edited 12-06-2012 09:30 AM
looks like you did not initialize all 4 of the elements in the bool array....