01-17-2025 05:08 AM
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.
01-17-2025 08:02 AM
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) --
Needless to say, this worked. A typical running of the main routine would have 6 to 20 of these clones running simultaneously.
Bob Schor