LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"In Port" for parallel port under Windows 2000

Hello,

I have written a Labview application that acquires data using a PC's
parallel port.

It works perfectly under Windows 98, however I am having some
difficulty getting it to work with Windows 2000.

I am aware of the usual problems and have installed hwaccess and
switched to using the parallelnt.llb versions of "In Port" and "Out
Port".

The behavior that I am observing is that when my program calls "In
Port", passing it the address of the parallel port, "In Port" is
sometimes returning values such as 65535 and 65530. I am expecting a
byte, not a word, to be returned from "In Port" as this is documented
to be the default behavior. Explicitly specifying a byte makes no
difference and as I said it works with Windows 98
.

Any advice that anyone can offer would be appreciated.

Regards,

Stephen
0 Kudos
Message 1 of 7
(3,028 Views)
Is it possible the function is returning an error code of 0xFFFF/0xFFFA to indicate there is a problem with something?
0 Kudos
Message 2 of 7
(3,028 Views)
What version of LabVIEW are you using?

Have you tried using the accessHW replacement VIs?

http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3DEBD56A4E034080020E74861&p_node=DZ52058&p_submitted=N&p_rank=&p_answer=&p_source=External
0 Kudos
Message 3 of 7
(3,028 Views)
Hello David,

David Duffey wrote in message news:<50650000000500000067140100-1042324653000@exchange.ni.com>...
> What version of LabVIEW are you using?

I am using Labview 6.1

> Have you tried using the accessHW replacement VIs?

Yes, I am already using the replacement VIs.

I am really stuck on this one so any advice as to what might be going
on would be appreciated.

I should also perhaps add that the parallel port is in EPP mode.

Regards,

Stephen
0 Kudos
Message 4 of 7
(3,028 Views)
m3nth wrote in message news:<50650000000500000057140100-1042324653000@exchange.ni.com>...
> Is it possible the function is returning an error code of
> 0xFFFF/0xFFFA to indicate there is a problem with something?

Not as far as I have seen in the documentation. Also I receive other
values which don't relate to the data that I expect to receive.

Cheers,

Stephen
0 Kudos
Message 5 of 7
(3,028 Views)
Hi, stephen,did you solved you problem. I met the some problem similar what you have, and have the same system. my problem is that the inport is not working at all. It pop out an window " the vi was stoped at nod 0x1D8 of subVI "in port.vi"". How can I do?
0 Kudos
Message 6 of 7
(3,028 Views)
Stephen,

Have you solved this problem yet?

I alsohave the same problem and have also installed AccessHW VIs. These however don't work with a CVI runtime engine later than version 5.5.1 see http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/8566c7f0fc169bf686256cd40076533a?OpenDocument .

I have not tried this yet but hopefully it will solve my problems

Regards,

Leeser
0 Kudos
Message 7 of 7
(3,028 Views)