LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build workable exe when subvi is opened by reference

Hi,

 

I wrote a program where subVI is opened via Open VI Reference where I introduce the subVI path. The program and packed exe works fine on my local development environment but the exe would not open subVI panel on other machine. I made the main VI with several buttons in event structure and I want to open each subVI panel when click each button, but it show no response on other machine and I suppose the build exe action did not embed subVIs which leads to the exe find no such VI. I also tried to use static VI reference and this time the exe could pop up subVI panel but there was an error says "Error 1198 occurred at invoke node". Not quite sure how to make the exe build work 😞 Is there anyone knows that how to build the exe when subVI is opend by reference? Really appreciate it.

MarkXL_0-1737112034238.png

 

0 Kudos
Message 1 of 2
(57 Views)

I haven't looked at (or used) the code for a while (almost a decade), but I have used Open VI Reference to start (numerous) Asynchronous Clones running.  The Clone VI was called "Station", and was passed a Named Queue of type S-Msg (this was a Messenger Channel going to run a Channel Message Handler loop, with the Queue being used to send "Now Do This" messages to the Clone(s).  Here's a picture (sorry, but almost everything should be self-evident by the entity names, and if I attached the "naked" sub-VI, it would have a lot of blank square boxes) --

Create Station Clone.png

 

Needless to say, this worked.  A typical running of the main routine would have 6 to 20 of these clones running simultaneously.

 

Bob Schor

0 Kudos
Message 2 of 2
(29 Views)