LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Parallel Port as digital input

I want to use a parallel port as an input to start off a program and have been looking at the Parallel Port Read example inthe ni examples. I am having a little difficulty understanding it, I suppose because it reads and writes. I would like the parallel port vi to give a boolean output which plugs into the selector terminal of a case structure and when there is a state change it runs the loop. Could anyone explain how I modify the example. Thanks
0 Kudos
Message 1 of 2
(2,316 Views)

Hello,

If i've correctly understand what you want, you only want to read a sigle bit from the parallel port. Well, if you simply wanna do that... you don't have to do anything to the example. He's already doing that. If the "write update" it's "true" reads and write's the parallel port. If "false", it only reads the current value.

You should remove the while loop so that you only read the parallel port once.

Best regards,

 

Jorge Amaral

Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 2
(2,300 Views)