12-17-2012 10:35 PM - edited 12-17-2012 10:40 PM
And if i do this, i do not need a case structure then?
12-17-2012 10:51 PM
I doubt you'd need a case structure. Your attached VI had another boolean, but it wasn't clear what the purpose of that was. So you might need a case structure for that one.
Of course it can be connected to the Elvis Writer. But your VI showed an array going to the Elvis stuff, but your description was only talking about 1 LED. What are the other lines for?
12-17-2012 10:57 PM
the extra boolean control connected to the LED is something extra as the led im trying to control is just one which is a physical LED. And the other lines are just to meet the case structure's requirements to run the program. Btw, i've replace the result with the Elvis writer but it still says it:
These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
The type of the source is boolean (TRUE or FALSE).
The type of the sink is 1-D array of
boolean (TRUE or FALSE).
this is the error
12-17-2012 11:57 PM
I runned the programmed and used a Build Boolean in between of the result and Elivis writer but this error occured;
Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.
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: 8
Number of Lines in Data: 1
Task Name: _unnamedTask<4>
what does this mean??
12-18-2012 09:33 AM
The explanation is quite clear. You have evidently defined the task with 8 channels but the data you are passing only has a single element. So, either your task is incorrect or the data is.
12-18-2012 11:51 AM
12-18-2012 08:15 PM
I still cannot solve the problem. With the circuit of multiple AND and the 2 index array, i am still having the error!
12-18-2012 08:33 PM
12-18-2012 10:23 PM
I changed it to different IO ports. But still cant. Actually i am still very confused with the number of channels in the digital task...><
12-18-2012 10:43 PM