LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I write to the parallel port using LabVIEW 6.0.2

Hi Pari

Check your labview.ini file for a line like:-

serialDevices="COM1;COM2;LPT1;

In this example you would refer to LPT1 as port 2 or ASRL2 because it is #2 in the list (COM1 is 0th, COM1 is 1st, LPT1 is 2nd)

If the program is a .exe then it will need its own .ini file e.g fred.exe will need a fred.ini file

Hope this helps

Keith
0 Kudos
Message 6 of 12
(945 Views)
I don't know if it would help, but I use the inport/outport tool in
the advanced>Port I/O menu to communicate w/ the parallel port. One
way to know if it is working or not is to continuously read the data
register (commonly based at 378h) and switch the direction on the
control register (37Ah >>5) This should make the data switch from 0
to FF. If so, it's working...
0 Kudos
Message 8 of 12
(945 Views)