To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This code utilizes the property nodes of a slide control to programmatically change its maximum and minimum values.
Description
This code takes advantage of the property node of a control and the features that can be updated at runtime. The user has the opportunity to manipulate the maximum and minimum values of the control on the front panel with user defined inputs. This property can be used to make sure a control being used as an input to another program is providing inputs within a needed range.
Requirements
Steps to Implement or Execute Code
Additional Information or References
Front Panel
VI Snippet
**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.
I would like to set limits to data entry in a control. It appears to me that this vi does not actually use the data entry max min, it really only uses the slider scale max min. For example, if you remove the slider scale max min, there is no change to the slide indicator or control values.
What is an appropriate way to limit user interface values on a control to a specified range?
On further examination, what I wanted to control on data entry was the dial, not the slider. The snippet below performs to my expectations. Additionally, the control properties must be changed such that data entry is coerced.