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.
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.
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
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.