Xentara v2.0.4
User Manual
|
Xentara has a built-in skill named SignalGenerator. This skill can be used to generates signals, like sine waves, pulse waves, or white noise. The signal generator can be used for testing purposes, or to generate reference signals.
The actual generating of the signals is performed by a sampler. A sampler is an I/O component, that contains a skill data point for each signal that it generates.
Samplers expose a single task named generate that generates new values for all its signals. You can insert that task into an execution pipeline and attach it to a timer or an event. To refer to the task, use its primary key. The primary key of the generate task of a sampler called “My.Sampler” is “My.Sampler.generate”.
Samplers have the following members:
key | The sampler’s primary key. |
name | The sampler’s name. The name is the last component of the primary key. |
UUID | The unique UUID of the sampler. |
type | The sampler’s element type. For signal generator samplers, this is always “signal generator sampler”. |
category | The sampler’s category. For signal generator samplers, this is always “device”. |
updateTime | The last time new values were generated for the signals. |
quality | The quality of the signals. The quality will be “good” if the generate task has been called at least once. |
generate | Generates new values for all the signals |
Signals have the following members:
key | The signal’s primary key. |
name | The signal’s name. The name is the last component of the primary key. |
UUID | The unique UUID of the signal. |
type | The signal’s element type. For signal generator signals, this is always “signal generator signal”. |
category | The signal’s category. For signal generator signals, this is always “data point”. |
value | The current value of the signal. |
updateTime | The last time the value was generated. |
changeTime | The last time the value changed. For some wave forms (e.g. pulse waves), the value might not change every time it is generated, so the change time may be older than the update time. |
quality | The quality of the value. The quality will be “good” if the generate task of the sampler has generated a value for the signal at least once. |
top | The top of the value range of the generated signal. For normal signals, this is the maximum value the signal will ever reach. For inverted signals (where the bottom is greater than the top), this is the minimum value the signal will ever reach. |
bottom | The bottom of the value range of the generated signal. For normal signals, this is the minimum value the signal will ever reach. For inverted signals (where the bottom is greater than the top), this is the maximum value the signal will ever reach. |
changed | This event is raised when either the value or the quality changes. |