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: 

Determin the value range of array with property node

Solved!
Go to solution

Hallo,

first sorry for my poor english.

 

I have several types of input parameter and one input array element. I have used the enum for the array typ. Because every type of parameter has its own range, so I have used the property node to determin the range of array element online.

I want to realize that, when the programm runs and user changes the parameter typ, if any number of the array element out of range, the programm will correct it automatically. But I have found that, the programm can only correct the last number of the array.

 

Can someone help?

 

Best regards

0 Kudos
Message 1 of 2
(2,624 Views)
Solution
Accepted by topic author TUDarmstadtLLX

You will not be able to do this with a property node since every element of an array have the same properties (data type, view, range, etc).  You can detect it with your own code.  I would use an Event Structure that has an Array Value Change event.  You can then go through the array and the range limits and make any corrections (FOR loop will help a lot here).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,610 Views)