11-08-2016 10:47 AM
I am new with labview and I am updating a code that was written with labview 5.. I am having troubles with case structures not calling sub VIs. I have added the "Source size calculation" button to the menu cluster but when it is selected in the case structure it does not execute. All of the existing buttons work fine (and have been removed from the other cases of the case structure), but not the one I added. I have selected "Run when opened" in VI Properties>Execution. I have also tried other sample VIs in the case strucutre but they also do no execute when selected. Any suggestions are appreciated!
Solved! Go to Solution.
11-08-2016 10:56 AM - edited 11-08-2016 10:57 AM
You probably should start with some simple tutorials.
11-08-2016 10:59 AM
My first recommendation is to rewrite this code using an Event Structure. It will make your life A LOT easier.
Secondly, it is generally not a good idea to have a VI "run when opened". If you need something to just run, you need to build it into an executable.
Thirdly, your subVI is not set up to show its front panel when it is called. Go into the VI Properties and then the Window Appearance section. If you customize, you will see the options to open front panel when called and to close it when complete.
11-08-2016 11:00 AM
The subVI is just an example VI, not the actual code that will be in there. But, all I want the case structure to do is to open the VI when it is selected.
11-08-2016 11:05 AM
Right-click the subVI, select "subVI node setup" and select "show front panel when called".