10-11-2006 10:36 AM
10-11-2006 01:11 PM
10-11-2006 02:59 PM
10-11-2006 04:11 PM
I can use any subvi I want, and I have no problem here. Attach your code and maybe I can find something. Zip the main and all subvi's.
To display a subvi indicator, you can create a reference and a property node to get the indicator value and wire it to another indicator on your main. Open vi reference, wire to Panel property node, wire that to All Objects [ ] property node, and search the array for a label that matches your indicator label. Wire that to a control property node to get the value. This is very similar to the way I write a value to a subvi control (boolean Stop button) in my example.
10-11-2006 04:29 PM
10-12-2006 11:32 AM
10-12-2006 11:50 AM
10-12-2006 12:11 PM - edited 10-12-2006 12:11 PM

Message Edited by tbob on 10-12-2006 11:12 AM
10-12-2006 02:01 PM
10-12-2006 03:57 PM
1) A tab is one of the controls that should be obtained with the Controls [ ] property node. Check the tab's label in the subvi, assign it a label if there is none. Use this label to get the reference to the tab. Use a Value property node for the Tab control just like you would with a boolean control. Write a 0 to the Value node for the first tab, 1 for the second tab. I think the Tab control values are U32. Send the tab selection before you open up the window.
2) It would be best to include a hide button on the subvi front panel itself. Create a Visible property node for the subvi in the subvi block diagram. Use an event structure to send a False to the Visible node when the hide button is clicked. The subvi front panel will disappear and the main, which was in the background, will re-appear. You may have to make the mechanical action for the hide button to a Latch type so that it can revert back to its normal state automatically after being read. Same for the show button in the main. Otherwise you would click the show button, it would become true, and the subvi would be shown. Then when the subvi was hidden again, the main would still be showing a true for the show button when it should be false. Latch mechanical action will take care of this.