Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

dead loop in using LPT port

Hi all,

  I installed labview 2013 today on windows 7. I have a old circuit board will take 25 point printer port as input to light up some LEDs based on the data pass to the port. After some reseachs online, I found that someone using In Port.vi and Out Port.vi to direct access the port but it is obsolete in windows 7 or later.  But some post in this forum suggests to use VISA instead. In MAX, I did see the LPT port recognized there. I am following the code shown in figure 2 at http://digital.ni.com/public.nsf/allkb/B937AC4D8664E37886257206000551CB for testing. I don't know why, after running the code, the code is in dead loop, even STOP or terminate the VI doesn't really quit the program. I need to kill the execulate in the task manager instead. But any way, no signal was sent out after run the code. I wonder if any thing wrong with that code, why dead loop alway?

0 Kudos
Message 1 of 3
(4,545 Views)
0 Kudos
Message 2 of 3
(4,462 Views)

@Aleramir wrote:

Have you tried with the example code from the article?

 

https://forums.ni.com/t5/Example-Code/Using-VISA-to-Access-the-Parallel-Port-in-LabVIEW/ta-p/3996020

 


Yes, I tried that example. After long time invesitgation, I find that some pin are in bad connection. I fix that and it is working now. But I have one quesiton. For LPT port, the example I am trying only export the an unsigned int to the DATA port. Is that any way I can change the control pins or status pins? Thanks.

0 Kudos
Message 3 of 3
(4,447 Views)