LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel port control and Status registers

Hello,

Does anyone know how to access the parallel port control and status
registers, The serial port write vi doesn't support this. I've looked
every where in the documents for it but to no avail.
0 Kudos
Message 1 of 4
(2,993 Views)
Murad Karrar wrote:

> Hello,
>
> Does anyone know how to access the parallel port control and status
> registers, The serial port write vi doesn't support this. I've looked
> every where in the documents for it but to no avail.

The best I recall you have 2 options.
1) Use VISA. I believe this has some options to control the par port.
2) Use the inport / outport VIs. All you need to know are the addresses of
these registers.

Kevin Kent
0 Kudos
Message 2 of 4
(2,993 Views)
The base address of LPT1 is usually hex 378. This is the D register. The
Status register is at the base address + 1 (hex 379). The Control register
is at the base address + 2 (hex 37A).

-Jim

Murad Karrar wrote:
>Hello,>>Does anyone know how to access the parallel port control and status>registers,
The serial port write vi doesn't support this. I've looked>every where in
the documents for it but to no avail.>
0 Kudos
Message 3 of 4
(2,993 Views)
Thank you for your replay,

I've used the VISA Open vi to open the ASRL10::INSTR device (LPT1) as was suggested by
Kevin B. Kent in the previous replay, then I used the VISA Move In8 setting the offset
number first to 1 then to 2 (as you suggested) but I got the following error back:
Error -1073807346 occurred at VISA In 8
Possible reasions:
VISA: The given session or object reference is invalid.

How else would i be able to refrence the registers, or am I using the wrong vi's??

Jim Kring wrote:

> The base address of LPT1 is usually hex 378. This is the D register. The
> Status register is at the base address + 1 (hex 379). The Control register
> is at the base address + 2 (hex 37A).
>
> -Jim
>
> Murad Karrar wrote:
> >Hello,>>
Does anyone know how to access the parallel port control and status>registers,
> The serial port write vi doesn't support this. I've looked>every where in
> the documents for it but to no avail.>
0 Kudos
Message 4 of 4
(2,993 Views)