LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 8.5 application builder .exe does not run.The same source code runs ok.

Hi,

I have an application built in labview 8.5 application builder using windows XP. I have one instrument connected in gpib and one connected to a serial port. The source code runs ok but when I build  an executable of teh same code and try to run it, it doesnt run the instrument connected to the serial port. It does communicate with the gpib port. Any ideas why this would be happening?

Steven
0 Kudos
Message 1 of 4
(2,664 Views)
My first guess (and what happens to me too often) is that you didn't set the com port as a default in one of the controls, and it is defaulting elsewhere.  If you freshly open the program (VI, not exe), then run it, without touching any controls, will it work?  If you have to change any controls, do them after you  hit run, as that is what the exe will see.  It may give some insight.
0 Kudos
Message 2 of 4
(2,647 Views)
Additional to Britoa's reply:  Did you add the serial commuication (drivers) when you built the application?
0 Kudos
Message 3 of 4
(2,638 Views)
if you use dynamic VIs (launched with VI sever) - you must make sure to include these VIs as dynamic dependencies
0 Kudos
Message 4 of 4
(2,629 Views)