APS-2BM-MIC / ipython-user2bmb

ipython configurations for the tomography instrument
2 stars 5 forks source link

create PVs for MONA feedback to BlueSky #21

Closed prjemian closed 6 years ago

prjemian commented 6 years ago

Per discussion today, we'll need some PVs so that modules in the MONA pipeline (such as verifier or proxy) can communicate information back to BlueSky. First PVs we identified are:

prjemian commented 6 years ago

This database:

record(bo, "mona:StopAcquisition") {
    field(ZNAM, "ok")
    field(ONAM, "Stop")
}

could be run as a softIoc instance from the linux shell when needed:

softIoc -d mona.db
prjemian commented 6 years ago

There may already be such a PV as frame_type in the cam plugin. Look for it.

prjemian commented 6 years ago

found it:

In [1]: pg3_det.cam.frame_type.enum_strs
Out[1]: ('Normal', 'Background', 'FlatField', 'DblCorrelation')
prjemian commented 6 years ago

The FrameType PV is already in the detector's attributes file (so it will show up in the attributes of the PVaccess PV):

    <Attribute 
        name="SaveDest"
        type="EPICS_PV"
        source="2bmbPG3:cam1:FrameType"
        dbrtype="DBR_STRING"/>

The name of the attribute is SaveDest