L-VIS User Manual
102
LOYTEC
Version 6.2
LOYTEC electronics GmbH
controls. Push button mode is activated on the
Text / Bitmap / Drawing
property page
using the
Enable Push Button Mode
check box. Once enabled, the mode of operation is
selected on the right via three radio buttons. The options are:
Send current value:
In this mode, each press of the button will cause all
connected output data points to be updated with the current value of the control.
The current value is defined by the last value received from any of the connected
input data points.
Select and send next value:
This mode will instruct the control to find the entry
in the mapping table which corresponds to the current value of the control and
then select the next entry to determine the new value which is sent out.
Select and send previous value:
Similar to the above mode, but the previous
entry in the mapping table is selected to determine the next value.
Below the radio buttons is a check box, which, when checked, causes the control to change
direction when either the end of the mapping table is reached, that is, it switches back and
forth between mode 2 and 3, walking through all available entries in the mapping table (up
and down).
NOTE:
Obviously, mode 2 and 3 only make sense if a mapping table is attached to the control and
the table contains at least two entries. A typical use is a table with two entries and the
control in mode 2, with direction change enabled. This provides a simple ON/OFF toggle
button. To build a push button which only sends out a fixed value when selected, no
mapping table is required. Set up the control using static properties and connect the output
data point which should be updated with a certain value. Mark the data point to be
Constant Value and enter the desired value as the Default Value of the data point.
Push button mode is very similar to normal input mode, except that the control chooses the
value to send automatically and that it automatically leaves input mode as soon as the push
button is released, whereas normal controls remain in the input mode until another object is
touched or the input idle time is reached.
NOTE:
As a consequence, a push button mode sends out two updates on a data point which has its
update mode set to ‘Immediate’. The first update is sent immediately when the control
chooses the next value, the second update is sent when the button is released and leaves
input mode. To prevent this extra update, set the update mode to ‘Focus Loss’.
9.5.4 Numeric Control
These controls are used to display values as numbers. Most properties can be set on the
Common Properties
page, as described earlier in this document. Similar to text controls,
the color of the number, the background, and the selection frame can be set on the
Color
property page, while text can alternatively be edited on the full-size
Editor
property page.
The
Numeric Control
property page provides access to the specialized properties of
numeric controls, like the allowed value range, some options, and the actual number format
configuration in case locale dependent formatting is used.
For standard number controls, which are not locale aware, a separate property page
containing a wizard to generate a suitable C-style format string is available, in case you
don’t want to enter it yourself on the common properties page.
In the area
Display and Input Range
, the properties concerning the value range for input
and display are defined. These values indicate the value range and resolution expected for
the control, and are used to estimate the maximum required output width when
auto-size
is
enabled. If input is allowed, the control will limit any input to the indicated value range.
Received values will be shown unmodified, even if they are out of range.