LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array data entry limits

How do you create a property node to allow you to set the data entry limits on the numeric controls in an array of numeric controls programmatically?
Jim

LV 2020
0 Kudos
Message 1 of 15
(4,129 Views)
set the maximum and minimum limits of the numeric control
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 15
(4,128 Views)

hope this helps:

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 15
(4,125 Views)

Sorry, my question was insufficient.  This is a continuation of a problem I had yesterday.  I am trying to use a reference to an array that is in a type def to set the data entry limits on the controls in that array.  I can get a reference to the array from the cluster, but I can't set the data entry limits in a property node for the array.  I tried to cast this reference to the more specific type of numeric control, and this will create a property node that has the data entry limits.  Unfortunately that typecast results in a type mismatch at runtime.

Message Edited by lmtis on 09-17-2009 09:47 AM
Jim

LV 2020
0 Kudos
Message 4 of 15
(4,104 Views)

Anybody have an idea how I can do this?

Jim

LV 2020
0 Kudos
Message 5 of 15
(4,049 Views)
You were certainly going at it the hard way.  You could go get the controls[] array, index it, typecast to array, get the ArrElem property, typecast to Numeric and then get the Data Range property.  Or, you can right click in the numeric control, create propery node and select Data Range.  Make sure it is a Type Def. and not a Strict Type Def. or it is all-for-naught.
0 Kudos
Message 6 of 15
(4,007 Views)

Really old thread, nevertheless I cant manage it like Darin.K has suggested.

I have a TypeDef (with five slider inputs), when I put this TypeDef from my ProjektExplorer to a VI and do right klick create->property node I cant find the 'data entry limits' nore the 'scale->range'. Somehow it is clear as there must be five of those. So is there another way to set those values?

0 Kudos
Message 7 of 15
(3,627 Views)

Hi wolfkil,

 

like that:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 15
(3,623 Views)

Hi GerdW,

 that was really fast. Thanks. Can you show me how to do it if my Sliders in the TypeDef are within a Cluster rather than an Array?

0 Kudos
Message 9 of 15
(3,619 Views)

If the cluster itself is not a type def, you can right click on your slider and create a property node.  With the property node you can manipulate the maximum and minimum inputs.


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
0 Kudos
Message 10 of 15
(3,610 Views)