From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't find Get Control Index by Name

Hello guys, please help me I want to call controls by there names, i founs the i can use property node called get control index by name in VImethods class but i can't find it !

0 Kudos
Message 1 of 3
(1,333 Views)

Hi Angikel,

 

try this:

Which LabVIEW version do you use?

This image is created with LV2017, while LV2011 doesn't know this method. Somewhen in between this method was added…

Best regards,
GerdW


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

Quick drop can do this.

 

On an invoke node:

 

CTRL+Space, "VI", CTRL+B. (change application method to VI method)

CTRL+Space, "Get Control Index By Name", CTRL+SHIFT+B. (set the method)

 

You won't get previews of the text in the QD...

 

Note the difference between a property node and an invoke node! They look the same at first, but aren't.

 

IIRC, Get\Set controls by index only work if the VI is running! If it isn't running, you need to get\set the values by name.

0 Kudos
Message 3 of 3
(1,297 Views)