04-16-2012 09:32 AM
I have a Refnum to a Slide (which is passed to SubVI). The Slide is on the parent's panel. I have passed the Refnum to Slide to the SubVi using "Static VI Reference" and "Invoke Node with Ctrl Val.Set", problem is the Slide is only visible when in use. I cannot see how to get at the Visible property of the Slide in the SubVI via it's Refnum. Is this possible?
Solved! Go to Solution.
04-16-2012 09:53 AM
04-16-2012 10:33 AM
@ChristopherPovey wrote:
I have passed the Refnum to Slide to the SubVi using "Static VI Reference" and "Invoke Node with Ctrl Val.Set", ...
huh?
04-17-2012 01:35 AM
May be needs a better description! 🙂
I have a VI which will form part on an engineering GUI. On this VI Front Panel I have a Slide (as a progress bar) and a Subpanel component. The Subpanel component is loaded with another VI which calls 3rd party library VI’s. Some of these VI’s have an input of a Refnum to a Slide (as a progress bar). I do not want the Slide visible when it is not in use, but I cannot see how to make the Slide visible/invisible from the Subpanel VI when it is on the parent front panel. If I call Invoke Node on the Refnum with the Visible parameter then the Refnum icon disappears rather than the Slide it points too.
04-17-2012 01:54 AM
04-17-2012 01:57 AM
04-17-2012 02:00 AM
@GerdW wrote:
Hi Chris,
as already said in message #2 (and #5) you have to use a property node instead of an Invoke node! As easy as it is:
However if you use the Refnum to the Slide and a Property node to hide it, it hides the Refnum Icon and not the Slide it is referenced too! So that does not work, unless there is a away I can link a slide in the subpanel VI to the refnum passed into it?
04-17-2012 02:04 AM
Hi Chris,
However if you use the Refnum to the Slide and a Property node to hide it, it hides the Refnum Icon and not the Slide it is referenced too!
Don't know what you're doing wrong, you should attach a VI instead of writing a 1000 words...
So that does not work, unless there is a away I can link a slide in the subpanel VI to the refnum passed into it?
Yes, it works - if done correctly. You don't need to link a slide to a refnum: you have to use the refnum of the slide in your subVI...
04-17-2012 02:06 AM
Could you please post your code so we can get out of this?
The "Refnum Icon" lives on the block diagram, so how could we hide it? Only controls on the FP can be hidden/shown.
04-17-2012 02:25 AM
Hi Christopher Povey,
Check the attached vis. Let me know if it helps.
Regards,
Nitz
(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved)