Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

rs-232 not working when compiling to EXE

My application uses rs-232 ports and works fine when run from the LV development system. However when I built it using the application builder and run the EXE file it does not. No error messages are generated by my program justs stops and I have to close it using the task manager. Hhat must I do in order to be able to run the EXE and use the serial ports as from the development system?
0 Kudos
Message 1 of 6
(3,548 Views)
Does your executable run OK when run on the same computer as the LabVIEW development system?  If you are running the executable on a different computer you may need to install NI-VISA, or create an installer and check the "Serial Port Support" box.
 
Allen
 
 
0 Kudos
Message 2 of 6
(3,542 Views)
I've seen this problem when you have controls specifying channels in your "original" VI.  I would try changing the control(s) to constants.
0 Kudos
Message 3 of 6
(3,511 Views)

I have exactly the same problem. Running my vi under the LV environment, I can access the instrument with rs232, but when I will use the exe files on a second computer I can't even choose the serial port name nor will it work with a constant. So I tried to install labview on this computer and now it is working.
But this is not the solution as I would like to use the exe file on different computer for lifetime measurements and I will not install on every computer labview. Is there a possibility to solve this problem?

0 Kudos
Message 4 of 6
(3,467 Views)
And did you include the VISA run-time when you installed the exe? This is an option when you create the installer - Installer Settings>Create Installer>Advanced>Serail Port Support.
0 Kudos
Message 5 of 6
(3,462 Views)

My last exe caused me a great deal of angst also.  Mine didn't involve RS232, so please excuse me if I am getting off the subject.

I transferred the MAX settings from my first computer to the second, according to NI's instructions. That didn't work so I configured MAX on the second by hand.  I made sure that my channels were named exactly the same as the first computer.  This solved my problem.

Good Luck

0 Kudos
Message 6 of 6
(3,460 Views)