Modifying Type Definition Control Properties Programmatically

Updated Jan 10, 2023

Reported In

Software

  • LabVIEW

Issue Details

I have a slide Type Def control in LabVIEW and I want to change the maximum and minimum values of it programmatically. I want this changes to be applied to all the instances of the control.

Solution

Maximum and minimum range are cosmetic properties, thus in order to have these properties inherited on all its instances the control must be Strict Type Def. Once you have an Strict Type Definition Control you can use VI Scripting to modify the control file and apply this changes to all the instances.

 

The attached project shows how to modify the maximum and minimum range properties of a slide Strict Type Def Control using VI Scripting.