<< Click to Display Table of Contents >> Navigation: User Interface > Project Properties > Units |
This feature is always a little bit misleading. The tool and the run time on the device do not offer any pre-defined calculations like Celsius to Fahrenheit and vice versa. You can see the groups of units in the project properties in the Unit category.
What you see here are possible groups of units which you can use. There are no automatic calculations done in the background. They all have to be defined within the tool and the properties of the objects. The current unit settings for the different unit categories (1) and the general unit setting (2) are only for the development phase. Setting the default unit system (3) does currently not have an effect.
To enable this feature for an object you have to change the dependency property of an object.
Change the dependency from "None" to "Unit" and you will see that some properties will get "..." buttons.
This is an example for a numeric object. These properties differ depending on the object selected (please see object reference for details). Usually you can enter only one value in "Offset", "Scale" or "No of Decimals". Now with the Unit dependency you can click the "..." button and get a new dialog.
This is the example for the "Scale". Here can now enter the values which shall be used for the scale depending on the unit which is currently chosen for the unit group.
For example: You choose the unit group "Force Units". Per default this group is selected as metric, so the scale value entered in the metric field is used. To change this you can make use of two mechanisms. First you can set the "Current Unit System" within the project properties (this will only have an effect in the designer, not at run time). The second is that you can change it during run time with the @SettingsForceUnits variable. Please note that you can not choose all unit systems for all variables. Please see the variables for details. For the force unit group you can choose, for example, only: similar to ISO 11783-7, A.23.5.8
0 |
metric [kN, N (Newton)] |
---|---|
1 |
imperial [pounds-force] |
So what this feature does, in the end, is switch between different offset and scaling value sets for objects displaying numerics directly or graphically, and texts for String Fields.