LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel port read with a CIN

I need to read the status of a pin of the parallel port from within a Labview CIN.
I intend to use this as a trigger for multiple camera acquisitions, and going back to Labview to read this value would not be fast enough.

I know that under windows XP I need to "unlock" access to this port. I used a set of functions called "winio" to do this. This works fine from a regular C program, but won't work from within a CIN. Does Labview lock the use of the parallel port in any way?
Does anyone know what I should do ?
Thanks.
0 Kudos
Message 1 of 4
(3,101 Views)


@Tchill wrote:
Does Labview lock the use of the parallel port in any way?
Does anyone know what I should do ?
Thanks.




Hi Tchill,

I can't remember Win-XP causing trouble with the parallel port. But I do know about the security feature which does not allow to change the parallel port IO addressing (that's another topic 😉 )

If you are running LV7.0, you can do a search example on parallel port. There are a couple of very useful vi's that you can run right away and it should get you going.

You can also check this thread.

or more directly into the developer zone for a tutorial by clicking HERE.

JLV
0 Kudos
Message 2 of 4
(3,094 Views)
Thanks Joe,

For some reason, the "Winio" functions didn't work along with Labview on my system. I cannot tell whether this is a general problem or not.
I eventually solved my problem by using another set of functions to unlock parallel port access:
"inpout32.dll" can be downloaded at :
http://www.logix4u.net/inpout32.htm
These functions work fine with Labview.

Tchill.
0 Kudos
Message 3 of 4
(3,073 Views)
Thanks for sharing Tchill,

This will be useful for others.
Glad to read that things worked out..

😄

JLV
0 Kudos
Message 4 of 4
(3,061 Views)