UserDefinedSequence¶
User-defined sequence generator for signal injection.
The UserDefinedSequence processing block can be found in the ‘Templates’ feature in the PMP installer. There is a version with 10.000 elements (UserDefinedSequence10k) and a version with one million elements (UserDefinedSequence1M).
Description¶
The top level routing of the processing block is shown in UserDefinedSequence 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 goes to enabled state, in which 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 generator retrieves one value per sample period from the user-defined LUT. The LUT can be filled using the IUpdatable interface.
User-defined sequence file definition:
Binary file containing a concatenated sequence of floating point values in little endian form.
Values must be defined in single precision floating point according to IEEE 754.
Values must be finite and is intended, but not required, to be in the range [-1,1].
Attention
The length of the sequence should be set explicitly via the LUTSize
signal.
Interface¶
Inputs¶
Name |
Description |
---|---|
Enable |
Trigger input, the user-defined sequence starts executing when high. |
Read only signals¶
Name |
Description |
---|---|
Iteration |
The iteration number of the user-defined sequence. |
State |
The state of the user-defined sequence generator.
|
UnfilteredOutput |
The output of the user-defined sequence after gain and offset, before applying the generic filter. |
Output |
The output of the user-defined sequence after the generic filter. |
Read-write signals¶
Name |
Description |
---|---|
Gain |
Factor that the output of the LUT is multiplied by. |
Offset |
Value that is added to the output of the LUT after gain. |
RepeatCount |
Amount of times that the LUT will be repeated. |
LeadTime [s] |
Time between enabling the LUT generator and starting the first iteration of the profile. |
LutSize |
Amount of data points in the uploaded LUT. |