LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Subpanel after building application .exe

Solved!
Go to solution

Hi Folks,

 

as I am kind of a self taught Newbie concerning LV and TestStand I have some Problems with building an exe.

I don't know wether this is a LabVIEW or TestStand question, so I posted this question on both Forums.

 

I am using the simple UI that came with Teststand and added a subpanel. Teststand is supposed to open the called VIs dynamically in this subpanel.

I used the code from the respective Tutorial http://zone.ni.com/devzone/cda/epd/p/id/6278

Everything works well until I build the application. The VIs are then opened in own popup-windows AND in the subpanel, but only the popup version is useable.

I hope that I am just too dumb to find the answer and that there will be a quick solution.

 

Pattos

LabVIEW Gretchin
0 Kudos
Message 1 of 9
(4,597 Views)

Hi Pattos,

Please check the following points

1. Make sure path is correct for dynamically called VIs; after creating the executable software will gives the application directory path.

2. Check the VI properties and disable the option Show front panel when called if enabled

Hope this helps

Regards

Santosh

0 Kudos
Message 2 of 9
(4,590 Views)

Hi Pattos,

 

I tested the example compiled as an exe and it works.

 

You have to make sure you configure the LabVIEW Adapter to use the same version of the run-time engine as the user interface. If your UI is compiled in LabVIEW 8.6, use the LabVIEW run-time engine 8.6 in your TestStand adapter setting.

 

Make sure the "show front panel when called" checkbox is selected for the VIs you want to show inside the subpanel.

 

Regards

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 3 of 9
(4,541 Views)

Hi AndreasS,

 

thanks for your answer, due to other important work I cannot test my UI right away, but I will let you know if it worked as soon as I have the possibility.

If it worked for you it should work for me, shouldn't it?

 

Regards,

Pattos

LabVIEW Gretchin
0 Kudos
Message 4 of 9
(4,534 Views)

Hi folks,

 

I adjusted the adapter version to LV2009, and ensured that "show front panel when called" is set.

But it still only works when started from the Testexec.llb.

Perhaps I am doing something wrong when building the .exe and therefore messing things up.

It would be nice if you could give me a quick tutorial on how you build the application, as it worked for you.

Thanks in advance.

Pattos

LabVIEW Gretchin
0 Kudos
Message 5 of 9
(4,508 Views)
Solution
Accepted by Pattos

So you built the exe in LabVIEW 2009 and you selected LabVIEW 2009 in your TestStand Adapter configuration and your VIs were opened and saved in LV 2009?

 

adapter.png

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
Message 6 of 9
(4,487 Views)

Jap, everything was done in LV 2009. (And TestStand 4.2)

 

I did adjust the adapter just the way your picture shows, but it does not work, which is why I would like to know exactly how to build the exe from the Testexec.llb and what I need to include.

Pattos

LabVIEW Gretchin
0 Kudos
Message 7 of 9
(4,474 Views)

It works!!

 

I just added like my whole project-folder to the application-database and now it works just fine.

I am kind of happy right now.

Thanks for your help. 🙂

Pattos

LabVIEW Gretchin
0 Kudos
Message 8 of 9
(4,470 Views)

Cool, glad to hear it helped!

 

The clinch here are the different LabVIEW instances. If for example the UI runs in development system, there is no chance for the Dev environment LabVIEW instance to access memory inside the run-time LabVIEW instance, hence the proper VI reference can't be accessed and another instance of your test step vi shows up in its own front panel. So it is crucial, that both the UI and the test step VI run in the same LabVIEW instance.

 

Regards,

Message Edited by AndreasS on 10-09-2009 10:48 AM
Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 9 of 9
(4,463 Views)