LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Control Value of an executable

Hi,

Using LabVIEW 6.1

I have a program which starts off with a splash screen which then dynamically loads the main VI after the splash screen gets hidden (FALSE-> Front Panel Visible). There is a stop button on the main VI which is used to halt the entire program. I have used VI server to remotely control this button with another VI (Invoke Node with "Select Control Value" method). Now when I build the main program into an executable, i cannot set off the button control. The Invoke node doesnt return an error, hence I have used the correct VI path when inputing the VI ref into the invoke node. I need the program to be an executable, so this is a problem. 😃

I have considered shared memory as an alternative to VI server, e.g. q
ueues, files, but I would prefer VI server.

Any suggestions?

Thanks in advanced.
0 Kudos
Message 1 of 4
(3,022 Views)
Don't know for sure but it sounds like you are running the halting VI independently from the main executable; i.e., running the VI in the LabVIEW.exe space (thread?) which is separate from the space that is allocated for the built executable. When running your entire program in development mode all VI's are ran in the LabVIEW.exe space so they can communicate with each other.

I would suggest calling your halting VI from the main program using VI Server. This will force the halting VI to run in the space allocated for the built executable. Doing this should allow you to use the 'Set Control Value' invoke node.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 4
(3,022 Views)
Take a look at this example VI and app and this KnowledgeBase Using VI Server to Pass Data between a VI and a LabVIEW Executable

Notice that you MUST enable TCP for the application an dwire in localhost to the open application reference.
Download All
0 Kudos
Message 3 of 4
(3,025 Views)

Hi, I have tried to build an other executable. This new executable is like APP.exe but with one difference: has one control more. This executable doesn't work.. How is formed the vi "APP.vi" for to obtain -> APP.exe? Which are the steps in Build Application for this? Can you send me the vi "APP.vi" and the right sequence to follow in Build Application? Must I add a particular vi in Add Dinamic VI..? Thanks a lot in advance, Simone

 

0 Kudos
Message 4 of 4
(2,850 Views)