LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

parrallel port input/tristate mode

I am trying to read data from the parrallel port Data Register. I have read that this can be accomplished best by setting bit 5 of the Control Register to '1' (logic high) to enable input/tristate mode.

I have used outp to write a '1' to bit 5 of the control register, however when I read the register it is still set to '0'. Is there a better/different way to reconfigure the port for input?

Attached is a simple program that sets bit 5 high, then reads the register.

Thanks,
the Steve
0 Kudos
Message 1 of 3
(2,578 Views)
Hi,
currently you can find nice and complete parallel port examples, when you search Google for "LCD printer port". These are good examples how to drive 8-bit periphery circuitry using bidirectional printer port. The examples show interconnection schemes and software written in C. Watch out for NT, W2K and XP. For those OSs you have to use system software for port i/o, look for "CVILowLevelSupportDriverLoaded" in Measurement Studio Help.
Regards
D. Teuchert
0 Kudos
Message 2 of 3
(2,578 Views)
The most comprehensive documentation I have found starts at Jan Axelson's 'Parallel Port Complete' page (http://www.lvr.com/parport.htm)

--
Martin
--
Martin
Certified CVI Developer
0 Kudos
Message 3 of 3
(2,578 Views)