LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel Port Write in LabVIEW for Linux?

I am trying to use individual pins on the Parallel port to control a device, but I can't communicate with the parallel port in LabVIEW for linux.

I have tried treating the parallel port as a serial device using the serial vi's and the VISA vi's. It is added the port to the .labviewrc and the visaconf.ini file. The correct pins are grounded and I still always get a LabVIEW Error.

I know that in NT you need to write to the port 0x378 using the memory vi's, does anyone know how to do this, or set up the parallel port to work from LabVIEW in Linux?
0 Kudos
Message 1 of 2
(2,966 Views)
When we say that the parallel port is at base address 0x378, we mean that the byte registers at 0x378, 0x379, and 0x37A are the D, S, and C registers of the parallel port (S = D + 1; C = D + 2). When you read and write to these via the inport and outport vis you bypass a handshaking layer that the function calls to serial port write must use.

Using inport and outprort doesn't require that you modify .labviewrc and visaconf.ini files, nor does it require grounding of certain pins.

The pinouts for the D, S, and C registers are as follows:
(- sign means that the logic is inverted)
01: -C0
02: D0
03: D1
04: D2
05: D3
06: D4
07: D5
08: D6
09: D7
10: S6
11: -S7
12: S5
13: S4
14: -C1
15: S3
16: C2
17: -C3

18 to 25 are Ground

-Jim
Message 2 of 2
(2,966 Views)