09-18-2012 09:32 AM
hi,
My program doesn't work while running the.exe.It works fine in Labview develop enviroment but it fails running when i do the same in .exe . If i run my .exe file ,i will get always error like below (see attch..).i am using Driver for Spectrum Analyzer(R&S,FSP). can anyone please suggest me?
09-18-2012 10:18 AM
09-19-2012 10:32 AM
hi,
There is no any error if i run it in a labview environment.Error occured only in a built application.i have attached two examples below.Both works fine in Labview environment.But if i built a .vi to .exe then the first one doesn't work and it shows error (see attach *jpg file above)and the second one works fine in both cases.I just remove the 'Level Config .vi' and ' Trace detector .vi' in second example.how to troubleshoot this problem??help me!!
09-19-2012 10:40 AM
Your code and the images show that you are using a VISA alias. Did you actually create the alias on the pc you installed the exe? Did you do an export of the hardware config in MAX and include that in your installer? Did you even create an installer? Did you install the VISA run-time on the pc with the exe?
p.s. Your use of local variables indicates a poor understanding of LabVIEW. Get rid of them and use wires.
01-30-2013 03:45 AM - edited 01-30-2013 03:50 AM
Hi all,
I have the similar problem, I have a write a code to control power supplies for example Töllner 8852 and Töllner 8952
everything works fine in development version, but when I build a exe, named Teststand.exe
this freezes, and don`t work at all.
i tried to bug the exe, but in debug mode i only see, that beginnig from Device OK subvi nothing work anymore,
the dataflow seems to be stopped before Device OK subvi (see attached jpeg file)
i attach my build properties also.
I tried to run the exe on the development machine, where Labview runtime engine 2010, and VISA Run Time 5.2 installed.
The communication with the instrument(s) is over GPIB, i have a USB-GPIB adapter on my PC.
When i run the top level vi on the development machine in labview development version everything is working fine, but builded EXE doesn`t.
the pop up windows are for debugging purpose, the pop ups in Device OK subvi doesn`t appear by running the builded EXE
Labview version is 2010
could you please help me, what could be the reason, and what can i try next?
thank you in advance
best regards
Robert