Open hinxx opened 3 months ago
The scan thread is only created on startup, https://github.com/paulscherrerinstitute/pcaspy/blob/f2f59c0e9e8fc8a56ad78d5f1f582e36287cd661/pcaspy/driver.py#L513-L517 So switch from passive to periodic is not possible.
The scan value is directly used to the delay function, https://github.com/paulscherrerinstitute/pcaspy/blob/f2f59c0e9e8fc8a56ad78d5f1f582e36287cd661/pcaspy/driver.py#L532 There is currently no way to stop it.
I would like to switch between passive and periodic scan. If the PV has initial scan set to non zero for
createPV
, is it allowed to set it to 0 during the runtime withself.setParamInfo('det1:trig', {'scan': 0})
?If I do that the PV updates, seen by the camonitor, are flooding my console with PV value changing rapidly.