Module Tag
The class that creates, modifies and uses tags.
Info:
- Copyright: Debaru Kft. 2017
- Release:
- License: GNU
- Author: Debaru Kft
| value |
Represents the value of the variable tag as a double |
| bvalue |
Represents the value of the variable tag as a boolean |
-
Tag ()
-
Creates a Tag.
-
set_value_with_time (value, sec, usec)
-
Sets the value and time at the same time
Parameters:
Usage:
Variable = Tag():name("TestVar")
Variable:set_value_with_time(123,3600,1000)
-
timestamped_value ()
-
Gets the value and timestamp of the variable
Returns:
-
changed ()
-
Returns true, if the value of the variable has changed since last call.
After value initialization it will return false.
Returns:
bool (default: false)
-
init (value)
-
Sets the initial value of the variable
Parameters:
-
label (label)
-
Adds a new label to the variable's label list
Parameters:
-
name (name)
-
Sets the name of the variable
Parameters:
-
name (unit)
-
Sets the unit name of the variable
Parameters:
-
persistent ()
-
Enables the persistance of the variable
-
get (name)
-
Gets the tag by its name
Parameters:
-
value
-
Represents the value of the variable tag as a double
-
bvalue
-
Represents the value of the variable tag as a boolean
- type
bool (default: false)