LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to open/run subVI

Hi,

This is what I am trying to achieve:
1) create a subVI representing a real world device (Valve)
2) Use instances of this subVI in a Main VI
3) Use the "Open" button to open the subVI FP
4) Through the subVI FP, issue different commands to the device

Please refer attached snaps of the VIs created

After creating the subVI and the code to call the subVI, these are the problems I am facing:
1) The FP for the subVI and its instances opens,but the controls wired to the subVI, in the Main VI, have no effect on the execution i.e. the subVI is not getting executed
2) The SubVI FP opens only for the first time the "Open" button is pressed from the Main VI.  For any other attempts, the FP doesn't open

Please advise if the approach is correct.

Thanks and Regards

0 Kudos
Message 1 of 4
(2,799 Views)

Hi EventTrigger,

 

why don't you attach the main vi and the subvi in question? This would be more interesting than to download a huge picture collection...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,786 Views)

Hi,

 

PFA the VIs in question!

Download All
0 Kudos
Message 3 of 4
(2,754 Views)
You can open a subvi's fp by right clicking the subvi and selecting the show subvi's fp you can than wire a case or event structure to open this vi also the dialog box example that ships with labview would help you
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 4
(2,749 Views)