From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

numeric control outside limits

Solved!
Go to solution

Hello,

 

I have a numeric control and I have set data entry llimits and selected coerce. It behaves fine using the increment/decrement buttons and when I type data in.

 

I want to be able to load a preset value read from a text file into the control . The problem is that using a local variable or property node to set the value the limits seem to be ignored.

 

Is there a way to update the control so it checks the limits or a better way of loading a preset value (the value will be different depending on the informtaion in the text file).

 

Thank you

0 Kudos
Message 1 of 3
(1,991 Views)
Solution
Accepted by topic author Link_DP

Use "in range and coerce" before applying the value programmatically and handle exceptions as needed.

Message 2 of 3
(1,984 Views)

Ah great.

 

I was hoping there would be a refresh/update button or something as I have now got to insert that block and create property nodes of max/min values for many controls.

 

Thank you for your help.

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