Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Question on digital I/O ports and how to select different lines.

Greetings ALL,

I'm having a problem trying to get my other DIO lines to trigger. I can get the first port to trigger P0.0 but I can't get any of the other Digital port lines to trigger I know it's syntax I'm just having problems finding the correct way to do it.

Example: The syntax I type in for port0.0 is "Dev1/port0"
what's the syntax for port0.1 I can't use the Dev1/port0/line0:1 because they say it's only for the M Series (and it doesnt work with my board).

Note: I'm using Labview 7.1
I have a usb 6008 DAQ board here's the VI I'm testing with

I'm just trying to control some LEDS on my external breadboard with my usb-6008

TIA
0 Kudos
Message 1 of 3
(2,996 Views)
You are correct in addressing it as "Dev1/Port0", and to write to more than one digital line, you will need to change the input to your DAQmxBaseWrite.vi. The data input for that VI is an unsigned 8 bit integer, where each bit represents a digital line. Take a look at the attached example. It will allow you to write to each of the 8 digital lines of port 0.
-Alan A.
0 Kudos
Message 2 of 3
(2,985 Views)
Thanks it worked perfectly
0 Kudos
Message 3 of 3
(2,971 Views)