LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the pin logic state at computer parallel port?

My intended purpose is to control the Pin2-9(data0-7) logic state at computer parallel port, through these pin,I can control an instrument switch. I use port out.vi , when I write the following binary data 10011110 to parallel port, what is the Pin2-9 logic state? My question is these binary data should go which pin at parallel port when I wirte labview program through Port out.vi? Is it possible that these data go to Pins other than pin2-9?

thank you for help!

Tony
0 Kudos
Message 1 of 5
(2,893 Views)
Hi Tony,

If you use the correct LPT-address, the binary values
should appear at Pin2....9.
This works without any problems for Win9x. In case you
use W2k or NT-platform you need some additional stuff. Find this on: http://zone.ni.com/devzone/explprog.nsf/webmain/49664743DED6F1DA862564BC004E3A7F?opendocument
Find attached a simple program for first LPT-port-test.
In case of questions mail to: werner.hasche@web.de
Regards
wha
0 Kudos
Message 2 of 5
(2,893 Views)
If you are writing values to the parallel port, the values should appear on pins 2-9. Remember that if you are looking at the computer back with the wider edge of the port facing up the pins are numbered from 1-13 from right to left. You may be checking the pins on the wrong side. Make sure you are using the correct base address for the parallel port. Also, make sure you do not set control register (base + 2) bit 5 high since this can potentially make the lines tristate.
0 Kudos
Message 3 of 5
(2,893 Views)
A 1 is high logic. You might find all the information that you need about the parallel port here:
http://www.lvr.com/parport.htm. This site is a series of links to information about parallel ports.

Have fun.

Rob
0 Kudos
Message 4 of 5
(2,893 Views)
Or simply put in serial resistors 8x470 ohms (pin 2-9) with 8xLED
connected to the ground (15-25 I guess) and see the out state.
Best regards
PP
0 Kudos
Message 5 of 5
(2,893 Views)