ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Out Port

I am using the Out port.VI and In Port to read and to write logical states using the parallel port of the PC, my problem is when I execute the program the parallel port is open and I can not close it and I have to reset the PC to use the printer, I want to know as I can close the parallel port to use again the printer without reset the PC

Thank you

Wilmer SALAS
0 Kudos
Message 1 of 3
(2,765 Views)
A quick & easy trick would be to read the state (value) of your parallel port at the very beginning of your test, and to restore to that value after you are done.

There is a control bit which has to be set or reset in order for the printer to take control / communicate with the port. If it is set to the wrong value (I cannot remember if it is a "1" or "0"), then the printer will remain in standby mode.

If my memory serves me right, it also depends on the LPT port settings within the BIOS. I think I posted a link to some documentation on port values for the parallel port. I will do a quick search and post it if I find it.

JLV
Message 2 of 3
(2,748 Views)
See the pdf titled "General Information on Parallel Ports" within this **link**

JLV
Message 3 of 3
(2,746 Views)