Hello all,
I am currently working on an interesting setup where I would like to use an external signal (i.e. PV from another IOC) within an asynPortDriver to trigger certain behavior (basically as a way to simulate hardware triggers for a device that does not allow for
them).
Could anyone point me to an example database that can do something like this? I was thinking of having the external signal be either a binary or scalar signal - and write some logic for "triggering" based on rising/falling edge when using the binary signal,
or with simple start/gate/step for scalars.
Also, if possible, rather than specifying the trigger source PV name as an environment variable at IOC boot, I'd be interested in being able to adjust the PV name for this INLINK dynamically, i.e. from another record in the database. I was thinking of using
a stringout and an scalcout that will compose the string with the CP/NMS modifiers for INPA dynamically. Is this actually possible or is the CA link only made at iocInit()?
Thanks,
Jakub
|