LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using CVI 6.0, inp() function to read from the parallel port does not work on WIN2000 machine. It does work under a previous version of CVI on a WIN98 machine.

My code worked fine on a 2 year old PC running WIN98 and CVI 5.something, now on a new machine running WIN2000 and the latest CVI version it does not. Trying to read data into the parallel port using the inp() function.
0 Kudos
Message 1 of 6
(3,662 Views)
The previous answer was not really true.
It works with CVI 6.0 but not under Windows 2000
Image Hosted by ImageShack.us
0 Kudos
Message 3 of 6
(3,662 Views)
In a WINNT environment you cannot access the ports directly. You need a driver to allow your code access to the ports. The best utility I have found for this is here you want the Win95/NT Port I/O driver.
also you might want to look at other stuff here.
0 Kudos
Message 4 of 6
(3,662 Views)
Solved the problem. Went to CMOS setup and set the parallel port to SPP mode instead of the default EPP. Now the inp() function reads the signals on the connector pins instead of the last outp() data that it sent. Found the answer here
http://www.lvr.com/jansfaq.htm
0 Kudos
Message 5 of 6
(3,662 Views)
My solution to this problem was to simply add a generic/text only printer using the add printer wizard. Even though there was no printer attached to the computer I was allowed to use inp, outp on the port.
0 Kudos
Message 6 of 6
(3,662 Views)