To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows you how to use the Set Control Values by Index function.
Description
Depending on the order that controls are placed on the front panel, you can modify its values based on the Set Control Values by Index function. Additionally, this function also allows the change to be picked up by an event structure.
Requirements
Steps to Implement or Execute Code
Additional Information or References
Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Just to note, this code uses the tabbing order of the controls, not the control index, to send the value chnage signal. I'd reccommend adding an input for an array of control references that you want to modify. these references can be used to grad the control indexes too.