Private
Public Access
11
1

Update Realtime Sampler Configuration

2024-06-11 09:30:19 +02:00
parent 1da69ecd40
commit 1e200e5cd8

@@ -5,6 +5,7 @@ The Pixelator/Orocos system includes a feature that allows a data channel (that
Configuring a realtime sampler requires:
- An `Orocos` type controller (just one for all realtime sampler channels)
- An `OrocosSampler` type detector (just one for all realtime sampler channels)
- The `RealtimeSampler` Orocos module correctly configured in `start.ops`
- The positioner configuration includes the fields:
- "rtDetector" whose value is the name of the `OrocosSampler` type detector
- "rtDetectorChannelIndex" whose value is an unique channel index integer
@@ -65,4 +66,23 @@ Note that any positioner can be added to the realtime sampler by adding the appr
"type" : "Epics",
"unitChannel" : "X07DA-ES1-USER13:DAT.EGU"
},
```
```
## start.ops
The following commands (or something similar) are needed to properly set up the `RealtimeSampler` in Orocos.
```
import("RealtimeSampler")
loadComponent("RtSampler","RealtimeSampler")
setActivity("RtSampler", 0.0, 1 , ORO_SCHED_RT )
connect("DI1.inputState","RtSampler.pixelClkSig", cp )
connect("DI1.inputCounter","RtSampler.pixelClkNr", cp )
connectPeers ("RtSampler","ComCon")
RtSampler.configure
RtSampler.start
```
Note that `DI1` is a digital input module that also needs to be correctly set up.