Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 daqmx base write digital output

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"

20055i7FF2068A217EBD5820057i741305B0AA573E29

0 Kudos
Message 1 of 3
(3,573 Views)

Finnaly got it:

 

Here it is for anyone else that needs it.

20165iD9DABC8E519AF500

0 Kudos
Message 2 of 3
(3,554 Views)

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


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(3,518 Views)