11-14-2008 10:39 AM
Hello
Any one of you can give me example ( vi would be more help full) to manage LABILE subvi windows.
Like I am working on A.vi and subvi B.vi is called the window of A.vi should hide from task bar of windows till I am finished with B.vi.. Actually I am trying to make a main front pane with number of buttons and only first button is usable while other are disabled when that button is pressed new subvi opens and main vi should hide from user. Then on return to main pane after the completion of tasks 1st buttons should disable while 2nd is ready for action....
I think I have clearly described what I am trying to do...
Thanks in advance
11-14-2008 04:14 PM
Hi Ali Afzal,
I will give you a starting point to research both of these topics - subpanels and programmatically disabling controls.
1) This article explains some of the basics of subpanel controls: What is a Subpanel Control?
2) Look at the LabVIEW help under the keyword of Subpanel.
3) As far as disabling a select control or indicator on the Front Panel, you can use a property node on the Block Diagram. See this Help page: Disabled Property
I hope this helps,
Kevin S.
Applications Engineer
National Instruments
11-15-2008 12:49 AM
Hello
I tried to follow the instruction on the links recommended by kevin's, but didn't get the work done . I am posting the the orignal vi's without my experiments and anyone can give me idea , now as i have also connected the LED of sub vi to the loop condition so how would be get that also..
Thanks in advance
Regards
Ali
11-15-2008 01:59 AM
11-15-2008 12:11 PM
Hello Thanks for your guidance yes actually I have changed me style of coding from loops to case structures.
I am worried about how to use subpanel and also get output from subvi connectors like led of subvi to the input of another subvi.... But all on same panel and on same location. Now what is happening every vi is opening in new windows with different placing.
11-18-2008 12:58 PM
11-18-2008 01:03 PM
11-18-2008 11:11 PM
Hello CLAIRE Thanks trying to use different GUI (front panel) in same window but only one can be seen at a time
i think i should post the screen shots of what i am trying to do.
11-18-2008 11:12 PM
11-19-2008 09:26 AM
As I see it, if you want the module to replace what is seen on the main window then you have a couple of different ways to do this:
Side-comment on code: I would recommend reading the style guide on coding. You should not wires going around in circles if you can avoid it. Also, instead of using multiple Boolean operators, use the Compound Arithmetic function, which allows you to select what operation to perform. An alternative would be to have the subVI spit out a cluster or array. Then you can use the Cluster to Array function (if you use a cluster) and use the Boolean And Array Elements or Or Array Element functions.
Also: it's pointless to use the Equal function to compare a Boolean to False. Think about it.