LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write all digitall ports (Channels) with decimal value

Solved!
Go to solution

Hi,

 

it is possible to write all digital port with a decimal value for a device with 96 channels in the same time?

I have a USB 6509 device and I want to write each bit whit value 1 in loop (for the first port I write 0,1,2,4,8,16, 32, 64 and 128) with line "Dev3/port0/line0:7", but if I want to write all the ports in the same time how to set the line and the "DAQmx write.vi"?

Thank you.

0 Kudos
Message 1 of 2
(2,061 Views)
Solution
Accepted by topic author chiritab

You can setup reading and writing in 8-bit ports with the 6509.  So you could just write 128 to "Dev3/port0".  If you want to write to all 12 ports, I recommend making a task that is multiple channels on the 6509 module, each channel in the task being a port.  You can then use the Multiple Channel, Single Sample to write your values.  Your values will need to be in an array of U8.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,028 Views)