To properly display this page you need a browser with JavaScript support.
Name
Name of the Knob. Must be unique whatever its type.
vsTASKER will generate a class whose name will be <Name>_Spt . For the moment, this class will inherit from Vt_Sprite class.
Any Sprite can be accessed using its name in a generated union named s .
Mode
Specify how the knob turns around its center of rotation:
: rotation varies continuously from Minimum to Maximum angles
: rotation jumps from one graduation to the next one, between Minimum and Maximum angles. The number of graduations (or steps) is defined below.
Step
Only for Discrete mode (2).
Minimum value is 1, going then from Minimum to Maximum angle (2 values). With a value of 2, there will be one stop between the Minimum and Maximum angles (3 values), etc.
Visual Aspect
Rotation
Coordinates, in the HMI design panel, of the sprite rotation center, materialized on the design display with:
The values can be changed here for perfect precision, or using the mouse by just selecting the + cross and dragging it anywhere on the HMI.
Minimum
Knob actual minimum Angle in degrees for the given Value . 0 is up, -90 or 270 is left, 90 is right and -180 or 180 is down.
Minimum angle must always be lesser than Maximum .
The knob cannot rotate less than the minimum angle.
Maximum
Knob actual maximum Angle in degrees for the given Value . 0 is up, -90 or 270 is left, 90 is right and -180 or 180 is down.
Maximum angle must always be greater than Minimum .
The knob cannot rotate more than the maximum angle.
Import/Export
Not available yet.
Definitions
Put here all the local variables needed for this specific Knob runtime code.
Initialization
Initialize here (mostly in RESET part) all the variables defined in Definition section.
Default set() can also be used here for putting the Knob in a specific rotation (set get a value and not an angle).
Runtime
The runtime code is called every time the Knob is touched by the mouse.
Use get() to retrieve the actual value of the Knob according to its rotation.