LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shortcut to disable/enable part of front panel

Solved!
Go to solution

Hello All,

I am coding to control a batch test bay which has 10 similar stations. each station has one tab control which carries about 25 controls/indicators. So around 250 front panel elements. other than these tab controls a small section of front panel contains a group of controls which has to be active at all times (such as close app, login etc). I want to disable/enable the tab control part of screen (all 250 elements) based on the status of a bit. but sittin down to select disable property for 250 elements and wire that to 0/1 sounds really scary.

I found the below thread which comes close.

http://forums.ni.com/t5/LabVIEW/Best-way-to-enable-disable-multiple-front-panel-controls/td-p/153512...

It talks about a string control which is painted transparent and placed on the part of the front panel that you wnat to disable , and whenever string control is disabled/enabled that part of panel too is disabled/enabled. this sounded quick but the problem was that whenever someone clicks on the sting when the vi is running , it turns white irrespective of the fact that its painted transparent. any other shortcuts for the above purpose?

 

thanks!!

0 Kudos
Message 1 of 7
(3,179 Views)
Solution
Accepted by topic author pcs82

Hi pcs,

 

you could

- simply disable the tab control at all

- simply disable all or selected tabs using a property node of the tab control

- collect references to all controls in the tabs (using a property node of the tab) and disable them in a loop: all done at runtime…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(3,167 Views)

We've used a transparent tab control in the past which works. Still it can be a bit of a pain to move/replace when you want to modify the panel. enable/disable by array of references is more work initially, but easier to maintain IMO.

 

0 Kudos
Message 3 of 7
(3,163 Views)

I have a utility I wrote that allows you to enable, disable, or disable & grey any or all controls on your front panel.  You feed it an array of control names then select if you want to change the Enabled properties of the controls in the list or all controls except those in the list.  You also select to enable, disable, or disable & gray.  There's also one that works the same except it will change the visible property.  I've attached a zip file containing them along with two VIs that recursively search for controls inside clusters and tabs as they are used in the utility VIs.  These are updated for LV2013 but I originally wrote them in 8.5 and can supply those if needed.

 

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
Message 4 of 7
(3,145 Views)
Place your controls in clusters and you'll only need 1 disable per cluster, or just disable the tab control.
G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 7
(3,129 Views)

hi,

can you post a 2012 vrsion please

0 Kudos
Message 6 of 7
(2,958 Views)

Here you go.  Just add these files to your user.lib folder.

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 7 of 7
(2,946 Views)