TrapeziumGenerator¶
Trapezium generator for signal injection.
The TrapeziumGenerator processing block can be found in the ‘Templates’ feature in the PMP installer.
Description¶
The top level routing of the processing block is shown in TrapeziumGenerator processing block routing.
Note
The PMP Generic Filter block is a GenericFilter and discretized using Tustin’s method.
Generator¶
When the generator is disabled the output of the generator block equals 0 and all internal counters are reset.
The generator goes to lead state when the Enable
input is set to True. In lead state the output of the generator remains 0.
After LeadTime
the generator starts executing the sequence.
The sequence is repeated for the number of times specified using the RepeatCount
signal.
The generator transitions to disabled state when the Iteration
exceeds the RepeatCount
.
If the repeat count is set to zero (default) the generator will remain enabled infinitely.
The time resolution of the profile generator is equal to the sample period of the controller. The trapezium type generates a trapezium according to Trapezium profile interval definitions.
Hint
By adjusting the time values the trapezium type can also be used to generate other common waveforms:
Square wave: set high rise, high fall, high dead, low rise, low fall and low dead times to zero
Saw tooth wave: set high, high fall, high dead, low rise, low, low fall and low dead times to zero
Triangular wave: set high, high dead, low rise, low, low fall and low dead times to zero
Interface¶
Inputs¶
Name |
Description |
---|---|
Enable |
Trigger input, the trapezium generator starts executing when high. |
Read only signals¶
Name |
Description |
---|---|
Iteration |
The iteration number of the trapezium generator. |
State |
The state of the trapezium generator.
|
UnfilteredOutput |
The output of the trapezium generator after gain and offset, before applying the generic filter. |
Output |
The output of the trapezium generator after the generic filter. |
Read-write signals¶
Name |
Description |
---|---|
Gain |
Factor that the output of the trapezium is multiplied by. |
Offset |
Value that is added to the output of the trapezium after gain. |
HighAmplitude |
The high amplitude of the trapezium. |
LowAmplitude |
The low amplitude of the trapezium. |
LeadTime [s] |
Time between enabling the trapezium generator and starting the first iteration of the profile. |
HighRiseTime [s] |
Time between the end of low fall time and start of high rise time. |
HighTime [s] |
Time that the trapezium will be at its high amplitude. |
HighFallTime [s] |
Time between the end of high time and start of high dead time. |
HighDeadTime [s] |
Time that the trapezium will remain at midline after being at its high amplitude. |
LowFallTime [s] |
Time between the end of low time and start of low dead time. |
LowTime [s] |
Time that the trapezium will be at its low amplitude. |
LowRiseTime [s] |
Time between the end of high dead time and the start of low time. |
LowDeadTime [s] |
Time that the trapezium will remain at midline after being at its low amplitude. |
RepeatCount |
Amount of times that the trapezium will be repeated. |