LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Do I need to set something when using Dynamic VIs to pass control values to an executable VI

I am using VI server to pass control information from one VI to another.
In the development system this works fine.
How ever once I build the VI's into an executable the values from one of the VIs does not get passed.

I use the same method in three different applications, 2 of the applications work fine, but one does not.

The only thing I can think of is that there is something that needs to be set that I did (without realizing) in the first two but not in the third.
All the Applications run fine.
The problem that occurs is in the values passed. The same value gets passed everytime this turns out to be what ever the default was prior to running application builder.
I a
m currently using 6.02.
0 Kudos
Message 1 of 3
(2,629 Views)
Kandrew wrote:

> I am using VI server to pass control information from one VI to
> another.
> In the development system this works fine.
> How ever once I build the VI's into an executable the values from one
> of the VIs does not get passed.
>
> I use the same method in three different applications, 2 of the
> applications work fine, but one does not.

Are you using Call by Reference or Set Control Value method? The second
absolutely requires the Front Panel to be present to work properly. The
LabVIEW application builder wants to remove the Front Panel by default
if the VI hasn't been configured to show its front panel when called or
doesn't have at least one Control Property Node in its diagram.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(2,629 Views)
I'm using Set/Get Control Value Method.

I did set the application builder to not remove Front Panel. "If you don't do this you get a missing resource error when you run the application.

I did find my error. On the one that does not work I was accedently closeing the reference prior to Calling the sub that requested the control value.

Once I fixed this it worked fine..

Thanks for your help.
If you are aware of any other tricks/tips when using VI server I would be greatful, I've only just started figuring out how to use these.
0 Kudos
Message 3 of 3
(2,629 Views)