07-15-2015
10:20 PM
- last edited on
06-10-2025
01:17 PM
by
Content Cleaner
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?
07-17-2015
10:00 AM
- last edited on
06-10-2025
01:17 PM
by
Content Cleaner
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
07-17-2015
03:21 PM
- last edited on
06-10-2025
01:17 PM
by
Content Cleaner
@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.