LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How identify type of control in LabVIEW 2013?

Hi,

 

I wanna identify type of each control from front panel of a main VI. When a control is type "tabcontrol" I will determine all contained controls of each tab.

 

I changed to LabVIEW 2013 for a short time. Unfortunately in LabVIEW 2013 I didn't find a property to identify the type of a control. A condensed code with my problem you can find in attachment.

 

Can anybody tells me, how I can solve this in LabVIEW 2013? Thank you in advance.

 

Christian

Christian

Test Engineering
digades GmbH
www.digades.com
0 Kudos
Message 1 of 6
(4,049 Views)

Hi CD,

 

you can check the type (aka class) of a FP element since several LabVIEW versions:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(4,023 Views)

Here's a VI I write a while ago that gets a reference to all controls and indicators.  What I did for detecting the tab control is to cast the reference to the PageSelector class.  If there was an error, you have a normal control.  Otherwise you can perform your recursive operation.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(3,995 Views)

Hi crossrulz,

 

thank you for your help. Have you got this VI also in version 2013?

 

Christian

Christian

Test Engineering
digades GmbH
www.digades.com
0 Kudos
Message 4 of 6
(3,988 Views)

C.D. wrote: Have you got this VI also in version 2013?

Here you go.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(3,966 Views)

There's also a VI that ships with LabVIEW that does this:

 

LabVIEW [20xx]\vi.lib\Utility\traverseref.llb\TRef Get All FP References.vi

 

It has various inputs that let you decide what kinds of objects you want to dig into, whether you want to include decorations, etc.

 

P.S. - I discuss this VI (and many, many others) in my Hidden Gems in vi.lib presentation.

0 Kudos
Message 6 of 6
(3,950 Views)