Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Standalone RS-232 application crass under Windows XP

I´m trying to make a stand alone application with Labview 6.0.2 for target PC. I build a complet install including Labview Runtime Engine from Labview 6.0.2. My program includes a VISA module and I need to be able to communicate by RS-232 on serial port on the target pc. The system software is Windows XP. I have tried to install following on the target PC:
- Complete install generated from Labview 6.0.2 that includes VISA Run-time Engine Version generated from Labview 6.0.2 and my application
- NI-VISA Version 2.6
- I put the �serpdrv� in same folder as my application EXE.

If I tray to run my application EXE on the target PC the program crass and shutdown.

This works perfectly on my machine (XP, Labview
6.0.2 installed) even as an EXE. When I run the EXE on target PC windows XP machine, it fails.

Is there any more driver´s or install procedure that I need ?
0 Kudos
Message 1 of 3
(3,660 Views)
Hello,
Since you're using VISA with serial, don't worry about serpdrv. Visa does not need it. You always want to match the versions of the LabVIEW and VISA runtime engines on your target machine with the versions on your development machine.

LabVIEW 6.0 shipped with VISA version 2.5, so unless you installed VISA 2.6 serparately, you probably have 2.5 on your machine. Also, part of the LabVIEW 6.0.2 update includes a seperate part for updating the Application Builder, that involves replacing an msi file, make sure you performed that step.
If your versions match then you are probably just missing some VISA aliases. (A VISA resource name will show ASRL1::INSTR instead of com1 on the target machine.) If this is the case you can just select ASRL1::IN
STR or make a couple changes in your visaconf.ini file of your target machine.

Ray K
NI applications Engineer
0 Kudos
Message 2 of 3
(3,661 Views)
Hi Ray
I have change the version for LV 6.0 to LV 6.0.2 and downgraded Visa to 2.5 and installed lvrt.msi from my Labview CD-ROM. I also installed MAX 2.0.
Now everthig is working like it should.
Thanks for your help 🙂
0 Kudos
Message 3 of 3
(3,659 Views)