Jon Kokott Posted March 24, 2011 Report Share Posted March 24, 2011 I have a subpanel in a VI which is running (call it "VI CONTAINER"), but the front panel is not visible. It inserts another VI (call it "VI INSERT") When I execute the code (from a top level) I invoke "frontpanel.open (activate=true,state=standard)" on "VI CONTAINER"; THEN invoke Supanel.insert("VI INSERT") . The front panel of "VI INSERT" appears in the subpanel contained in "VI CONTAINER" but the controls/indicators never update. This only happens the first time I run the main VI. If I stop execution, then hit the run arrow again, after the subpanel.insert is called "VI INSERT" updates its front panel normally. what gives? This is especially bad because in a built application it never works, since it is always the first time run. (it will work in built applications if you stop execution, and hit the run after running it once it will work normally as well) I am calling "frontpanel.defer frontpanelupdates = FALSE" on "VI INSERT"'s front panel in numerous places and times, it doesn't help. Quote Link to comment
egraham Posted March 24, 2011 Report Share Posted March 24, 2011 Have you tried invoking Run VI on VI insert before invoking Insert VI? Quote Link to comment
Jon Kokott Posted March 25, 2011 Author Report Share Posted March 25, 2011 Have you tried invoking Run VI on VI insert before invoking Insert VI? "INSERT VI" is called in a CBR node. the reference fed into that node is saved. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.