LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set data range to a strict typdef through the control reference

Solved!
Go to solution

Hi everyone,

 

I am trying to set data range to a strict typdef through the control reference, when I do so I get an "property node error".

 

Is there any way to set range to the strict typdef.

 

Thanks,

 

Vignesh

 

0 Kudos
Message 1 of 7
(3,664 Views)
Solution
Accepted by topic author Vignesh1987

@Vignesh1987 wrote:

I am trying to set data range to a strict typdef through the control reference, when I do so I get an "property node error".

Is there any way to set range to the strict typdef.


Try setting the original (type-def) control, and not its instances.. to open the reference of original type-def control, use 'Open VI Reference'.

 

Edited:

These properties are not available with STRICT TYPE DEF.

a. Data Entry Limits:Increment Property

b. Data Entry Limits:Maximum Property

c. Data Entry Limits:Minimum Property


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 7
(3,659 Views)

Hi Vignesh,

 

no, it's part of the typedef.

Use a normal "non-strict" typedef instead when you need different input ranges for several controls made with the typedef...

Best regards,
GerdW


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

Just to add a little bit to Gerd's comment.  You cannot change the properties of an instance of a strict type-def.  When you put the strict on the type def, it locks down the properties.


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 4 of 7
(3,637 Views)

Hi,

 

I'd like to follow up on this one.

 

I understand the difference between a strict and regular typedef, but I was wondering why isn't there any intermediate options. For example, when using an image display control the X and Y ranges are part of the strict typedef, so you can't change them, but if you set the type to regular _EVERYTHING_ (except the data type, of course) can now be changed so you need to hand-tune every control instance for the right size and everything. Interestingly, even for a strict typedef the X and Y ranges change with different image sizes. I don't understand what's the logic behind this?

 

Consider an analogy: your cars has two-position knob - a) go straight, no steering at all; b) four independent steering wheels for each wheel...surely there are better ways <:

 

Isn't there a way around this limitation?

 

Regards,

Lukas

0 Kudos
Message 5 of 7
(3,572 Views)

Hi Lukas,

 

look up the LabVIEW Idea Board, there are ideas related to your question...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,552 Views)

One of the more useful LV facts I learned early on was that stricts are typedefs with all properties locked. Being able to change properties of a strict means it's no longer "strict". Just my $0.02

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 7 of 7
(3,547 Views)