LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB-8451

Hi,

 

I'm using a NI USB-8451.

 

I want to be able to simply switch each of the 8 lines P0.<0..7> to high and low (3.3V and 0V).

 

The attached VI works for line 0, but not lines 1..7.

 

Why not?

 

Dan

Dan
CLD
0 Kudos
Message 1 of 5
(2,968 Views)

The subvi is missing. Can you please post a snapshot of it atleast?

 

Mathan

0 Kudos
Message 2 of 5
(2,963 Views)
 
Dan
CLD
0 Kudos
Message 3 of 5
(2,961 Views)
You are not configuring the 8451. Please look at the examples that ship with the 8451. Specifically, the one called "Digital Line Write".
0 Kudos
Message 4 of 5
(2,940 Views)

I had a similar issue with the USB-8451 until I realized that when initializing the port direction for the device, the value you give it is a bit mask and not just a number. I don't think you are having that issue, but it may come up later. Here is a VI that I've been working on for reading and sending to the DIO ports, the first part is setting up the device, might be what you need. Mine Is set up to write to P0.3 and P0.2, which are physically wired to P0.1 and P0.0 which are setup as inputs. I put this VI together to simulate reading a clocked digital signal. Hope it helps.

0 Kudos
Message 5 of 5
(2,671 Views)