LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel read write

Next week I need to write a code with LV7.1 for an analog/digital I/O card
with a parallel port. Up to now I have only used serial communication and
know the ins and outs.

What are the major differences between the two ? What do I need to look out
for ? Are there any examples ?

Thanks,
W
0 Kudos
Message 1 of 3
(2,925 Views)
There are a couple of ways to talk to the parallel port in LabVIEW.

You can use NI-VISA to communicate with LPT1 (also known as, I think, "ASRL::10::INSTR"). This will let you do straight reads and writes, and assumes that the device uses pretty normal signaling. Under the hood, NI-VISA is using the Windows API to talk to serial ports, and this happens to work for parallel ports.

However, this won't expose the full parallel port functionality. In particular, you won't have control over individual digital lines on the port. So, if your device needs finer-grained control than just reading and writing data, you will need to use the Port I/O functions. Use the Example Finder and search for "parallel" and you'll find a couple of examples of how to do this
lower level port I/O.

Good luck. I hope this helps.

Brian
0 Kudos
Message 2 of 3
(2,925 Views)
Thanks Brian.

"Brian Powell" wrote in message
news:506500000005000000D7890100-1079395200000@exchange.ni.com...
> There are a couple of ways to talk to the parallel port in LabVIEW.
>
> You can use NI-VISA to communicate with LPT1 (also known as, I think,
> "ASRL::10::INSTR"). This will let you do straight reads and writes,
> and assumes that the device uses pretty normal signaling. Under the
> hood, NI-VISA is using the Windows API to talk to serial ports, and
> this happens to work for parallel ports.
>
> However, this won't expose the full parallel port functionality. In
> particular, you won't have control over individual digital lines on
> the port. So, if your device needs finer-grained control than just
> reading and writing data, you wil
l need to use the Port I/O functions.
> Use the Example Finder and search for "parallel" and you'll find a
> couple of examples of how to do this lower level port I/O.
>
> Good luck. I hope this helps.
>
> Brian
0 Kudos
Message 3 of 3
(2,925 Views)