LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VisualBasic "Show & Hide" equivalents in LabView

As I continue with my first LabView app I want to thank those in this forum who have helped me. Everyone here has been great!

Anyway, I find myself wanting to include additional forms that I want to show and/or hide (VB terms) based on operator input while the main application is executing. I have not found a direct method for doing this.

Please point me in the right direction.

thanks again,

todd
0 Kudos
Message 1 of 12
(3,746 Views)
Thinking back to very limited exposure to VB, a Form in VB is equivalent to a Front Panel in LabVIEW. If this isn�t correct, kindly ignore the rest of this message.

What you want to do is create subVI that contains the Font Panel (Form) that you want to show or hide. You then can set this up to display it�s front panel when called by right clicking on the subVIs icon on the diagram and selecting �SubVI node setup�� In the dialog that pops up, you�ll see selections for showing the front panel when called and closing afterwards.

This can also be accomplished programmatically using property nodes, but the method described above is simpler and will probably work for what you want to do.

If you want more details on using property nodes to do this, p
ost a comment here and I�ll explain it, or have a look through the Example Finder searching on Property Node. That should bring up some useful examples.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 12
(3,746 Views)
Sorry, I am not familiar with the VB terms. If you want to change which controls or indicators are visible, you have a few possibilities, e.g.:

* Individual items can be shown/hidden using a property node with the "visible" property. Just wire a boolean true/false to it depending on the state.

* Use a tab control with the tabs hidden. Place items that should appear together on individual tab pages. During the run, show the appropriate page by writing to the tab terminal.

* If you want to show additional forms in their own window, make them into a subVI and either call them directly or programmatically show or hide the panel using a VI reference.
Message 3 of 12
(3,746 Views)
altenbach,

thank you for your response. It is a big help.

todd
0 Kudos
Message 4 of 12
(3,746 Views)
Ed,
I'll give your suggestions a try. Thanks. I may take you up on your offer on the use of property nodes.

thanks again.

todd
0 Kudos
Message 5 of 12
(3,746 Views)

Hi,

I want to show/hide the Labview Help programatically. (Just on the click on single button)

How it can be done?

Do i have to use event structure on Ctrl + H buttons???Smiley Indifferent

Please suggest some solution.

Thanks

Regards,
Dev
CLD Certified Engineer
0 Kudos
Message 6 of 12
(3,438 Views)
There's a help palette with a primitive called Control Help Window, which should do what you want (assuming you want the context help).

___________________
Try to take over the world!
0 Kudos
Message 7 of 12
(3,431 Views)


Message Edited by mathan on 07-01-2008 07:07 AM
0 Kudos
Message 8 of 12
(3,423 Views)

Hi Tst,

Thanks. i know that there is a Context Help Window where you can see the help for all the functions or Labview help.

i want to show/hide this window programatically.

Is it possible?

Thanks.

Regards,
Dev
CLD Certified Engineer
0 Kudos
Message 9 of 12
(3,420 Views)

Thanks Mathan,

This is what i wanted.

Thanks.

Regards,
Dev
CLD Certified Engineer
0 Kudos
Message 10 of 12
(3,418 Views)