Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in parallel port control

Hi

I have a problem in sending ASCII code by using parallel port. I have put serialDevices="COM1;COM2;LPT1" into Labview.ini file. There was a problem when I used parallel port to communicate but fine in COM1 and COM2. I used Loopback.vi for testing but the LabVIEW was hang when I run the program. I enabled Highlight Execution to check the program flow and found that the program stopped when the program flow into Oper Serial Driver.vi. How should I solve the problem?
Best Regards

Bill
0 Kudos
Message 1 of 4
(3,641 Views)
I am not sure what loopback.vi is or what it does to the parallel port. While searching the web, I came across the following discussion:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000000D170000&UCATEGORY_0=_246_%24_13_&UCATEGORY_S=0
The guy asking the question had a way around the hang of the serial driver.vi by closing it before commuincating to the parallel port.

You can also write directly to the parallel port's memory address. Look on NI's site for accesshw for a library of vis that write to memory.

Jeremy Braden
0 Kudos
Message 2 of 4
(3,641 Views)
Hi Bill,

why don't you use the "Out Port" and In Port" sub.vis?
I use these ones for Win9x; WinNT & W2k. The only thing you need to know - you need for NT + W2k additional patches (accesshw) - if needed, you can have it from me - write to: werner.hasche@web.de
Find attached a example, how to use paraport in "parallel" way. This example does not work in bidirectional direction, but I have made more "high end"-ones for direct use of 8255 circuit - this gives direct access to 24 bit at paraport.

Hope this gives some new ideas.
Regards
wha
Download All
0 Kudos
Message 3 of 4
(3,641 Views)
find in addition a test.vi for bidirectional - input - test stored in llb, because of different address.vi's inside

regards
wha
0 Kudos
Message 4 of 4
(3,641 Views)