07-27-2010 06:51 PM
I am using LV2009 & Touch Pannel Module
My hardware is the TCP 2106 & USB 6008 with daqmxbase
I have been monkeying around a few days with getting the digital outputs to work. I was using an array of booleans but those would only control line 0.
What are the proper output commands for the U8 type?
The more i have looked around the forums the more I find out but my code become less functional:
my most recent errors I get the error -200428 (Value passed to Task/Channels In control is invalid)
I have tried everyway but the right way for the past two days. I tried to create the task within the VI (dynamic task I believe) but that would never work.
Can anyone find anything wrong with my code/ knows a guide to understand the U8 (Say I wanted the outputs to be 00000000 or 11111111 or 01000000?)
I basically want to convert an array of 8 booleans to my digital outputs:
thanks,
Settings for my task: "digital_out"
07-28-2010 12:30 PM
Finnaly got it:
Here it is for anyone else that needs it.
08-02-2010 02:55 PM
Funny how that works. the choice on when to use u8 n Chan 1Sample vs u8 1chan 1sample depends on if the task is configured by selecting a port (port addressed) or lines (line addressed) 1 sample to a port is 1 U8 but you must have a task addressing a port.
It looks like you line addressed so you are writing multiple chanels and can use the solution you've shown- Or save a bit of BD conversion and use
Digital N ch 1 sample 1D boolean and wire your array directly