Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple port digital output using Boolean controls

I have a USB-6009 DAQ card and am working on developing LabView 7.1 programs for digital output to control several solenoid valves.
All together I need to be able to send ten signals meaning that I need to be able to write to both digital ports. I had the first
port on the digital side working by sending Boolean signals to each column of an array which I then converted to numbers to be
output to the card, but was not able to incorporate the second port. An example of what I am trying to do is as follows: to send
a signal to P0.0 and P0.2 but not P0.1, I switch the Boolean controls to read 101 in binary which is then converted to the number 5
and output to the card. I have a series of steps (the rows of the Boolean control array) and the program moves through the sequence
by a timing scheme I have set up, so if I then want to send a signal to P0.0 and P0.1 and stop the signal to P0.2, I would output 110
(the number 3) to the card. I have considered setting up an array with 12 columns but am not sure if this will work without having to
tell LabView to write to port 1 instead of port 0 when appropriate. Any assistance would be greatly appreciated.

Cy Bevenger
0 Kudos
Message 1 of 2
(3,467 Views)
Hello Cy,

I would take a look at the USB-600x Interactive Control.vi that is installed with the NI-DAQmx Base driver. On my computer it is located in this file path:
C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase

If you take a look at the block diagram you will notice that it uses two separate tasks to update each port. Instead of have an array with 12 columns, you can have 1 array of 8 columns for port 0 and 1 array of 4 columns for port 1. I hope this helps!
Eric
DE For Life!
0 Kudos
Message 2 of 2
(3,441 Views)