Update cdsFilt authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
...@@ -44,20 +44,25 @@ You do this by adding the name of the channel (without the '_DQ' suffix) to a DA ...@@ -44,20 +44,25 @@ You do this by adding the name of the channel (without the '_DQ' suffix) to a DA
| `_OUT_DQ` | The latest value of the filter, after all processing. (OUT on medm) | Full Model Rate, unless decimated in DAQ channel list | | `_OUT_DQ` | The latest value of the filter, after all processing. (OUT on medm) | Full Model Rate, unless decimated in DAQ channel list |
### cdsFilt ### cdsFilt
![image](uploads/ee62f8c4c1e67cc7f1a5afa094489300/image.png) > ![image](uploads/ee62f8c4c1e67cc7f1a5afa094489300/image.png)
The `cdsFilt` part has all the above mentioned EPICS channels. The `cdsFilt` part has all the above mentioned EPICS channels.
### cdsFiltCtrl ### cdsFiltCtrl
![image](uploads/b3f22055273c4c6d873234badacd8c51/image.png) > ![image](uploads/b3f22055273c4c6d873234badacd8c51/image.png)
The `cdsFiltCtrl` block adds two additional inputs and 1 additional outputs. The `cdsFiltCtrl` block adds two additional inputs and 1 additional output.
| Port Name | Function | | Port Name | Function |
| --------- | -------- | | --------- | -------- |
| In1 | Input sample, same as `cdsFilt`. | | In1 | Input sample, same as `cdsFilt`. |
| Cin | Control input. A bitfield containing controls bits for the filter provided by the realtime logic, instead of EPICS channels like in the `cdsFilt` case. | | Cin | Control input. A bitfield containing controls bits for the filter provided by the realtime logic, instead of EPICS channels like in the `cdsFilt` case. |
| Mask | Local control (LC) bitfield mask. This specifies the control bits that are controlled by the models realtime logic, instead of EPICS channels like in the `cdsFilt` case.| | Mask | Local control (LC) bitfield mask. This specifies the control bits that are controlled by the models realtime logic, instead of EPICS channels like in the `cdsFilt` case.|
#### Cin/Mask Explanation
When valid bits are set in the Mask input the filter module will use the corresponding bits from the Cin input instead of the normal `_SW1` and `_SW2` EPICS channels. This allows the realtime model to control a subset of the filters control flags.
> ![image](uploads/c7fa73a8681b970d828415cd15c7eca7/image.png)
#### Additional EPICS channel #### Additional EPICS channel
The `_MASK` channel is made available with `cdsFiltCtrl` and `cdsFiltCtrl2` parts. This is a read only channel that records the value of the Mask input port. The `_MASK` channel is made available with `cdsFiltCtrl` and `cdsFiltCtrl2` parts. This is a read only channel that records the value of the Mask input port.
... ...
......