Example Code

Find Control Reference By Name

Code and Documents

Attachment

Introduction

Trying to modify properties of individual controls in a VI or cluster can be difficult if you do not already have the refnum of that control.  Using the following code, you can search for a specific control in an array of control refnums

Find Control Reference By Name.png

Steps to Complete

Get the array of controls using the Cluster > Controls[] Property node, Front Panel > Controls or any other array of controls. 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors