LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

working with parallel port

Hello
I am intersted in working with the parallel port (LPT1 if I understand correctly) - I want to be able to generate an electric stimulus in the LPT port from the vi: what is the way to do it???
should I use the Out Port.vi to do so???   
Lava
0 Kudos
Message 1 of 8
(3,393 Views)

lava,

You should be able to use the VISA vi's to control the parallel port.

0 Kudos
Message 2 of 8
(3,376 Views)

Hello centerbolt

can you please be a little more specific- lets say I want to change the data in one of the pins from '0' to '1', and the addresses of LPT1 in my computer are 0368-037F, can you send me a short block diagram to illustrate your solution???

thanks, Lavi

0 Kudos
Message 3 of 8
(3,355 Views)
sorry, the addresses are 0378-037F
0 Kudos
Message 4 of 8
(3,353 Views)
sorry, the addresses are 0378-037F
0 Kudos
Message 5 of 8
(3,354 Views)

lava,

With VISA you just need to use LPT1.  The other part of parallel port communication is that you write to the port, not to individual pins.  This example should get you going.

 

http://zone.ni.com/devzone/cda/epd/p/id/4213

0 Kudos
Message 6 of 8
(3,351 Views)
Is this option ok also??
0 Kudos
Message 7 of 8
(3,327 Views)
Out_Port.vi also works.  I personally do everything with VISA.  It makes it easier to write programs that will run on other pc's with different LPT port settings.  With VISA you don't need to know the physcal address the port is set to.  That can be a real headache if your programs have to run on a lot of different pc's. 
0 Kudos
Message 8 of 8
(3,317 Views)