05-19-2025 03:29 AM
Hi,
I have developed a Button Menu VI that is designed to call various operator VIs based on the selected button (VI attached for your reference).
The VI functions correctly on the initial attempt—when a button is pressed, the corresponding operator front panel is displayed as expected. However, on subsequent attempts, if the same button is pressed again, LabVIEW generates the following error:
"Error 1000 occurred at Invoke Node in NT_HD_Bottom_V1.vi"
This error occurs because the VI being called is already running.
The intended functionality is as follows:
All individual operator VIs should be running in the background from the start, with their front panels initially hidden.
The Button Menu VI should be the only visible front panel.
When a button is pressed, the associated operator VI’s front panel should become visible.
Upon pressing another button, the currently visible front panel should be hidden, and the newly selected operator VI’s panel should be shown instead.
I would appreciate any guidance or suggestions on how to achieve this functionality without encountering runtime errors.
Best regards,
Serdar Akin
05-19-2025 04:02 AM - edited 05-19-2025 04:06 AM
Hi Serdar,
@AH_Serdar wrote:
The intended functionality is as follows:
All individual operator VIs should be running in the background from the start, with their front panels initially hidden.
The Button Menu VI should be the only visible front panel.
When a button is pressed, the associated operator VI’s front panel should become visible.
Upon pressing another button, the currently visible front panel should be hidden, and the newly selected operator VI’s panel should be shown instead.
Generic advice:
05-19-2025 07:37 AM
Hi Gerd,
Thank you for your prompt response and valuable advice.
I attempted to replace the Run VI invoke node with Insert VI, but unfortunately, the Insert VI option does not appear in the available list. I’ve attached a screenshot for your reference.
Could you please advise on how to proceed or suggest an alternative approach?
Best regards,
Serdar Akin
05-19-2025 07:47 AM
Hi Serdar,
@AH_Serdar wrote:
I attempted to replace the Run VI invoke node with Insert VI, but unfortunately, the Insert VI option does not appear in the available list. I’ve attached a screenshot for your reference.
Could you please advise on how to proceed or suggest an alternative approach?
I did NOT recommend to "replace" the invoke nodes, but to place them differently 🙂
You already know the method/invoke node to insert a VI (reference) into a subpanel as it is used in your VI.
That "Insert" method is a method of the subpanel, it's not a method of the VI!