Xentara v2.0.4
User Manual
The Signal Generator

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.

Samplers and 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”.

Accessing Samplers

Samplers have the following members:

Attributes
keyThe sampler’s primary key.
nameThe sampler’s name. The name is the last component of the primary key.
UUIDThe unique UUID of the sampler.
typeThe sampler’s element type. For signal generator samplers, this is always “signal generator sampler”.
categoryThe sampler’s category. For signal generator samplers, this is always “device”.
updateTimeThe last time new values were generated for the signals.
qualityThe quality of the signals. The quality will be “good” if the generate task has been called at least once.
Tasks
generateGenerates new values for all the signals

Accessing Signals

Signals have the following members:

Attributes
keyThe signal’s primary key.
nameThe signal’s name. The name is the last component of the primary key.
UUIDThe unique UUID of the signal.
typeThe signal’s element type. For signal generator signals, this is always “signal generator signal”.
categoryThe signal’s category. For signal generator signals, this is always “data point”.
valueThe current value of the signal.
updateTimeThe last time the value was generated.
changeTimeThe 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.
qualityThe 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.
topThe 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.
bottomThe 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.
Events
changedThis event is raised when either the value or the quality changes.