Analog user input
- Last UpdatedJul 26, 2024
- 1 minute read
The following elements can be specified for an analog user input animation link.
|
Elements |
Description |
|---|---|
|
Title |
Object name. Optional. |
|
Message |
Message text to user. Required if optional schema is used. Default is no message text. |
|
InputOnly |
If input only: true, false. Default is false. |
|
MinAnalogValue |
Minimum floating point value allowed. Required if optional schema is used. Default is 0.0 |
|
MaxAnalogValue |
Maximum floating point value allowed. Required if optional schema is used. Default is 100.0. Must be larger than the value assigned to the MINANALOGVALUE element. |
|
KeyPadEnabled |
Specifies whether a keypad is visible. Possible values are True or False. The default is False. |
|
KeyAssignment |
Virtual key element, empty string, or absent. Default is no assignment. Empty string means no assignment occurs. |
|
Expression |
Analog type tag name. Required. Object is not created if invalid or missing. |
Example:
<<UserInputAnalog>
<Title>UserInputAnalog1</Title>
<InputOnly>false</InputOnly>
<KeyAssignment>
<KeyCode>F1</KeyCode>
<KeyFlags>Ctrl</KeyFlags>
</KeyAssignment>
<Message>Flush Pump Speed</Message>
<Expression>aTag001</Expression>
<KeyPadEnabled>false</KeyPadEnabled>
<MinAnalogValue>0.0</MinAnalogValue>
<MaxAnalogValue> 100.0</MaxAnalogValue>
</UserInputAnalog>
Minimal example:
<UserInputAnalog>
<Message>Pump Valve State</Message>
<Expression><![CDATA[aTag001]]></Expression>
<MinAnalogValue>0.0</MinAnalogValue>
<MaxAnalogValue>100.0</MaxAnalogValue>
</UserInputAnalog>