We often use dbpf for temporary changes of alarm thresholds for
instrument temperatures and pressures.
The db contains what they should be if everything was working properly.
I don't see how that is bad coding.
Maren
On Thu, Sep 18, 2025 at 7:10 AM Michael Davidsaver via Tech-talk
<
[email protected]> wrote:
>
> On 9/18/25 07:54, Johnson, Andrew N. via Tech-talk wrote:
>
> Many of our IOCs use one or more “dbpf” commands in their startup script (sometimes after an epicsThreadSleep) ...
>
> Nooooooo!
>
> Finding a bunch of random, rarely commented, dbpf calls in an IOC start script is to me a bad code smell. The same goes for sleeps, only more so. Please investigate 'field(PINI, "RUNNING")', or look at other ways to actually synchronize startup.
>
>
> ... it should even be possible to handle disconnections and later reconnections for links to remote IOCs if you want to do that.
>
> imo. any well written driver for an ethernet attached device __needs__ to do this.
>
> Generally, I have found that the more effective way to coordinate connect/disconnect is at the driver level. Generally with a special device support to drive on-connect processing.
>
>