LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

application doesn't work after build

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?

0 Kudos
Message 1 of 5
(3,708 Views)

Hi tadhika,

 

the error message says it: there's an invalid reference...

 

Did you do any debugging?

What else do you want to know when all you provide is the picture of an error message?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,693 Views)

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!!

Download All
0 Kudos
Message 3 of 5
(3,659 Views)

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.

0 Kudos
Message 4 of 5
(3,650 Views)

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

 

Message 5 of 5
(3,564 Views)