LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Refnum Slide "Visible"

Solved!
Go to solution

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?

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
0 Kudos
Message 1 of 16
(3,300 Views)

Hi Chris,

 

you should use a PropertyNode instead of a InvokeNode...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 16
(3,294 Views)

@ChristopherPovey wrote:

I have passed the Refnum to Slide to the SubVi using "Static VI Reference" and "Invoke Node with Ctrl Val.Set", ...


huh?

0 Kudos
Message 3 of 16
(3,287 Views)

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.

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
Message 4 of 16
(3,269 Views)

Hi  Christopher,

  Based on inputs,i can think of like you need to set the Visible property to true in each and every VI which you are calling,when you are exiting from that VI again you need to set the Visible property to false.

 

 

Regards,

SrikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 5 of 16
(3,261 Views)

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:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 16
(3,254 Views)

@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:

check.png


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?

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
0 Kudos
Message 7 of 16
(3,251 Views)

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 16
(3,247 Views)

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.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 9 of 16
(3,245 Views)
Solution
Accepted by topic author ChristopherPovey

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:smileywink: 

Message 10 of 16
(3,239 Views)