LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO MAKE EXECUTABLE STAND ALONE APPLICATION IN LABVIEW

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

0 Kudos
Message 11 of 20
(1,797 Views)

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

0 Kudos
Message 12 of 20
(1,773 Views)

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 

Download All
0 Kudos
Message 13 of 20
(1,761 Views)

Hi,

    

           There are many mistakes in your program. Firstly dont use n number of while loops in your code, try to use event loops or case structure.I have modified only ur main VI. Check out with the code nd get back to me if you have any doubts.

0 Kudos
Message 14 of 20
(1,752 Views)

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. 

0 Kudos
Message 15 of 20
(1,739 Views)
I am a bit confused about what you are trying to accomplish and what you are worried about. Can you please attach a screen shot of your block diagram?
Regards,
Claire Reid
National Instruments
0 Kudos
Message 16 of 20
(1,680 Views)
Also, please take a look at Controlling Muliple VIs with Subpanels. If I understand what you are trying to do, I believe this will help you.
Regards,
Claire Reid
National Instruments
0 Kudos
Message 17 of 20
(1,679 Views)

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.

Download All
0 Kudos
Message 18 of 20
(1,652 Views)
Hello part of Block Diagram..
0 Kudos
Message 19 of 20
(1,651 Views)

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:

 

  • Make the main VI a module and then you create a higher-level VI that's just a panel viewer. It would work very much like the "SubPanel Viewer" example that ships with LabVIEW - you basically switch what's being seen. The problem with this is that you would need to have the "main" VI have some memory or something so that when you bring it back then you can return to what you were doing, or you can update its controls based on what was done with the submodule.
  • Create a subpanel on your main VI and place the control so that it fits over the container you're using to house all the controls for the main VI. You will need to change the visibility of the subpanel based on whether you're working with the main VI or a subpanel. You may want to try this out using a few simple submodules and a simple main VI.


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. Smiley Wink

Message 20 of 20
(1,627 Views)