Operator Library: Signal
The operator compensates runbacks of a ShaftEncoder.
The operator has an input link I which can be fed with encoder pulses On input link Dir, the current encoder direction can be defined.
Input pulses with backward direction are suppressed at the output. However, the operator will count the input pulses with backward direction internally. When the ShaftEncoderCompensate is fed with forward pulses again, they will be still suppressed until all backward pulses are compensated. In other words, each backward input pulse increments the internal Counter. Each forward input pulse decreases this Counter if it is > 0. A pulse is only output for each forward input pulse if the internal Counter is equal to zero.
The parameter MaxPulseBits specifies the Bit Width of the internal Counter, i.e. ShaftEncoderCompensate can compensate 2 ^ MaxPulseBits reverse pulses at maximum. If more than 2 ^ MaxPulseBits backward pulses occur, only 2 ^ MaxPulseBits pulses during runbacks can be compensated.
The current Counter value i.e. the number of pulses to be compensated can be read using parameter CompensationCounter. It is possible to overwrite the current Counter value by writing a new value to this parameter.
The operator can directly be connected to operator ShaftEncoder.
In the following waveform the functionality of the operator is illustrated.

An additional reset input can be used to reset the Counter as shown in the following.

このオペレータは、VisualApplets の機能シミュレーションから除外されます。
| Property | 値 |
|---|---|
| オペレータータイプ | O |
| 入力リンク | I, signal data input Dir, signal data input Reset, signal data input |
| Output Link | O、信号データ出力 |
| Link Parameter | Input Link I | Input Link Dir | 入力リンク Reset | Output Link O |
|---|---|---|---|---|
| Bit Width | 1 | 1 | 1 | as I |
| Arithmetic | unsigned | unsigned | unsigned | as I |
| Parallelism | 1 | 1 | 1 | as I |
| Kernel Columns | 1 | 1 | 1 | as I |
| Kernel Rows | 1 | 1 | 1 | as I |
| Img Protocol | VALT_SIGNAL | VALT_SIGNAL | VALT_SIGNAL | as I |
| Color Format | VAF_GRAY | VAF_GRAY | VAF_GRAY | as I |
| Color Flavor | FL_NONE | FL_NONE | FL_NONE | as I |
| Max. Img Width | any | any | any | as I |
| Max. Img Height | any | any | any | as I |
| MaxPulseBits | |
|---|---|
| タイプ | static パラメータ |
| Default | 10 |
| 範囲 | [2, 32] |
|
This parameter specifies the Bit Width of the internal Counter. |
|
| CompensationCounter | |
|---|---|
| タイプ | 動的読み取り/書き込みパラメータ |
| Default | 0 |
| 範囲 | [0, 2^MaxPulseBits-1] |
|
This parameter shows the current value of the compensation Counter. Reading from the parameter shows the current value. Writing to the parameter overwrites the Counter value. |
|
The use of operator ShaftEncoderCompensate is shown in the following examples:
-
'Line Scan Trigger for microEnable 5 marathon VCL Using Signal Operators and Operator CameraControl'
ラインスキャントリガーを示します。 このトリガーには、キャプチャゲートを使用する画像トリガーおよび多機能ライントリガーが含まれます。 トリガーの生成には、外部ソース、内部周波数ジェネレータ、またはソフトウェアトリガーパルスを使用できます。
-
'Line Scan Trigger for microEnable 5 marathon VCX QP Using Signal Operators'
ラインスキャントリガーを示します。 このトリガーには、キャプチャゲートを使用する画像トリガーおよび多機能ライントリガーが含まれます。 トリガーの生成には、外部ソース、内部周波数ジェネレータ、またはソフトウェアトリガーパルスを使用できます。
-
'Line Scan Trigger for imaFlex CXP-12 Quad Using Signal Operators'
CoaXPress12 用のラインスキャントリガーを示します。 このトリガーには、キャプチャゲートを使用する画像トリガーおよび多機能ライントリガーが含まれます。 トリガーの生成には、外部ソース、内部周波数ジェネレータ、またはソフトウェアトリガーパルスを使用できます。

前へ

