# # EPICS database for # JAI CM-140M-CL Camera # # Required macros: # P PV prefix part 1 $P$R # R PV prefix part 2 $P$R # PGP_PV PV prefix for rogue register PVs # PGP_LANE PGP_LANE number 0-3 # record( stringin, "$(P)$(R)CamModel" ) { field( VAL, "JaiCm140M" ) field( PINI, "YES" ) } record( stringin, "$(P)$(R)CamModelScreen" ) { field( VAL, "ADPgpCamlinkScreens/JaiCm140M.edl" ) field( PINI, "YES" ) } # Camlink settings record( longout, "$(P)$(R)CamlinkPixelClk" ) { field( DOL, "40" ) } record( longout, "$(P)$(R)CamlinkBaudRate" ) { field( DOL, "9600" ) field( OMSL, "closed_loop" ) field( HIGH, "9601" ) field( HSV, "MINOR" ) field( LOW, "9599" ) field( LSV, "MINOR" ) field( PINI, "YES" ) } record( mbbo, "$(P)$(R)CamlinkDataMode" ) { field( DOL, "2" ) # 10 Bit field( ONSV, "MINOR" ) field( THSV, "MINOR" ) field( PINI, "YES" ) } record( mbbo, "$(P)$(R)CamlinkFrameMode" ) { field( DOL, "2" ) field( THSV, "MINOR" ) field( ONSV, "MINOR" ) field( PINI, "YES" ) } record( mbbo, "$(P)$(R)CamlinkLinkMode" ) { field( DOL, "1" ) field( TWSV, "MINOR" ) field( ZRSV, "MINOR" ) field( PINI, "YES" ) } record( longout, "$(P)$(R)CamlinkHTap" ) { field( DOL, "1" ) field( HIGH, "2" ) field( HSV, "MINOR" ) field( LOW, "0" ) field( LSV, "MINOR" ) field( PINI, "YES" ) } record( longout, "$(P)$(R)CamlinkTrigMask" ) { field( DOL, "1" ) # Trigger on CC1 # field( OMSL, "closed_loop" ) field( PINI, "YES" ) } record( bo, "$(P)$(R)CamlinkInvCC" ) { field( DOL, "1" ) field( PINI, "YES" ) } # Provide defaults for ADCore SizeX and SizeY record( longout, "$(P)$(R)SizeX" ) { field( DOL, "1380" ) } record( longout, "$(P)$(R)SizeY" ) { field( DOL, "1040" ) } record( longout, "$(P)$(R)CamlinkHActive" ) { field( VAL, "1380" ) } record( longout, "$(P)$(R)CamlinkVActive" ) { field( VAL, "1040" ) } record( longout, "$(P)$(R)CamlinkHSkip" ) { field( VAL, "0" ) } record( longout, "$(P)$(R)CamlinkVSkip" ) { field( VAL, "0" ) } record( ao, "$(P)$(R)Gain" ) { field( HOPR, "100.0" ) field( LOPR, "0.0" ) field( EGU, "%" ) field( PREC, "2" ) field( FLNK, "$(P)$(R)CamGain" ) } record( ao, "$(P)$(R)CamGain" ) { field( DOL, "$(P)$(R)Gain" ) field( OMSL, "closed_loop" ) field( HOPR, "100.0" ) field( LOPR, "0.0" ) field( EGU, "%" ) field( PREC, "2" ) field( FLNK, "$(P)$(R)JaiCalcGain" ) info( autosaveFields, "VAL" ) } record( calc, "$(P)$(R)JaiCalcGain" ) { field( INPA, "$(P)$(R)CamGain NPP NMS" ) field( CALC, "(A*420/100)-84" ) field( FLNK, "$(P)$(R)JaiGain" ) field( PREC, "2" ) } record( ao, "$(P)$(R)JaiGain" ) { field( DESC, "Camera gain (0..1023)" ) field( DOL, "$(P)$(R)JaiCalcGain" ) field( OMSL, "closed_loop" ) field( DTYP, "stream" ) field( OUT, "@JaiCm140M.proto SetInt(GA) $(PORT).SER" ) field( DRVH, "336" ) field( DRVL, "-84" ) field( HOPR, "336" ) field( LOPR, "-84" ) field( PREC, "0" ) field( FLNK, "$(P)$(R)JaiGain_RBV" ) } record( longin, "$(P)$(R)JaiGain_RBV" ) { field( DESC, "Gain from camera report" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(GA) $(PORT).SER" ) field( FLNK, "$(P)$(R)JaiCalcGain_RBV" ) } record( calcout, "$(P)$(R)JaiCalcGain_RBV" ) { field( INPA, "$(P)$(R)JaiGain_RBV NPP NMS" ) field( CALC, "(A+84)*100/420" ) field( OUT, "$(P)$(R)CamGain_RBV PP MS" ) field( PREC, "2" ) } record( ao, "$(P)$(R)CamGain_RBV" ) { # field( TPRO, 2 ) field( EGU, "%" ) field( PREC, "2" ) field( OUT, "$(P)$(R)Gain_RBV PP MS" ) } record( ao, "$(P)$(R)CamAcquireTime" ) { # field( TPRO, 2 ) field( PREC, "5" ) # field( FLNK, "$(P)$(R)JaiAcquireTimeFanout" ) # field( FLNK, "$(P)$(R)JaiShutter_ASub" ) } record( ao, "$(P)$(R)JaiBlackLevel" ) { field( DESC, "Black Level (0..1023)" ) field( DTYP, "stream" ) field( OUT, "@JaiCm140M.proto SetInt(BL) $(PORT).SER" ) field( DRVH, "1023" ) field( DRVL, "0" ) field( PREC, "0" ) field( FLNK, "$(P)$(R)JaiBlackLevel_RBV" ) info( autosaveFields, "VAL" ) } record( longin, "$(P)$(R)JaiBlackLevel_RBV" ) { field( DESC, "Black Level (0..1023)" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(BL) $(PORT).SER" ) field( PINI, "YES" ) } record( stringin, "$(P)$(R)JaiCameraID_RBV" ) { field( DESC, "JAI camera ID" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetString(ID) $(PORT).SER" ) field( PINI, "YES" ) } record( stringin, "$(P)$(R)JaiFirmware_RBV" ) { field( DESC, "JAI camera firmware version" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetString(VN) $(PORT).SER" ) field( PINI, "YES" ) } record( stringin, "$(P)$(R)JaiModel_RBV" ) { field( DESC, "JAI camera model" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetString(MD) $(PORT).SER" ) field( PINI, "YES" ) } record( mbbo, "$(P)$(R)JaiPixelDepth" ) { field( DESC, "Pixel Depth" ) field( DTYP, "stream" ) field( DOL, "0" ) field( OUT, "@JaiCm140M.proto SetInt(BA) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "10-bit" ) field( ONST, "8-bit" ) field( PINI, "YES" ) field( FLNK, "$(P)$(R)JaiPixelDepth_RBV" ) # info( autosaveFields, "VAL" ) } record( mbbi, "$(P)$(R)JaiPixelDepth_RBV" ) { field( DESC, "Pixel Depth" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(BA) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "10-bit" ) field( ONST, "8-bit" ) } record( mbbo, "$(P)$(R)JaiPresetShutter" ) { field( DESC, "JAI Preset Shutter Speeds" ) field( DTYP, "stream" ) field( OUT, "@JaiCm140M.proto SetInt(SH) $(PORT).SER" ) field( ZRVL, "0" ) field( ZRST, "Off" ) field( ONVL, "1" ) field( ONST, "1/60" ) field( TWVL, "2" ) field( TWST, "1/100" ) field( THVL, "3" ) field( THST, "1/250" ) field( FRVL, "4" ) field( FRST, "1/500" ) field( FVVL, "5" ) field( FVST, "1/1000" ) field( SXVL, "6" ) field( SXST, "1/2000" ) field( SVVL, "7" ) field( SVST, "1/4000" ) field( EIVL, "8" ) field( EIST, "1/8000" ) field( NIVL, "9" ) field( NIST, "1/10000" ) field( PINI, "YES" ) field( FLNK, "$(P)$(R)JaiPresetShutter_RBV" ) } record( mbbi, "$(P)$(R)JaiPresetShutter_RBV" ) { field( DESC, "JAI Preset Shutter Speeds" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(SH) $(PORT).SER " ) field( ZRVL, "0" ) field( ZRST, "Off" ) field( ONVL, "1" ) field( ONST, "1/60" ) field( TWVL, "2" ) field( TWST, "1/100" ) field( THVL, "3" ) field( THST, "1/250" ) field( FRVL, "4" ) field( FRST, "1/500" ) field( FVVL, "5" ) field( FVST, "1/1000" ) field( SXVL, "6" ) field( SXST, "1/2000" ) field( SVVL, "7" ) field( SVST, "1/4000" ) field( EIVL, "8" ) field( EIST, "1/8000" ) field( NIVL, "9" ) field( NIST, "1/10000" ) # field( FLNK, "$(P)$(R)JaiPresetShutter_ASub" ) } # JAI Units vary w/ camera type and vertical binning mode # MCL/PMCL Cameras # No vertical binning: 30.58us # W/ vertical binning: 58.9us record( longout, "$(P)$(R)JaiProgExposure" ) { field( DESC, "Programmable Exposure Length" ) field( DTYP, "stream" ) field( DOL, "2" ) field( OUT, "@JaiCm140M.proto SetInt(PE) $(PORT).SER" ) field( DRVL, "2" ) field( DRVH, "1051" ) field( EGU, "x30.6us" ) field( PINI, "YES" ) field( FLNK, "$(P)$(R)JaiProgExposure_RBV" ) # info( autosaveFields, "VAL" ) } record( longin, "$(P)$(R)JaiProgExposure_RBV" ) { field( DESC, "Programmable Exposure Length" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(PE) $(PORT).SER" ) field( EGU, "x30.6us" ) } record( mbbo, "$(P)$(R)JaiScanMode" ) { field( DESC, "Scan Mode" ) field( DTYP, "stream" ) field( DOL, "2" ) field( OUT, "@JaiCm140M.proto SetInt(SC) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( TWVL, "2" ) field( THVL, "3" ) field( FRVL, "4" ) field( ZRST, "FullFr" ) field( ONST, "2/3 Fr" ) field( TWST, "1/2 Fr" ) field( THST, "1/4 Fr" ) field( FRST, "1/8 Fr" ) field( PINI, "YES" ) field( FLNK, "$(P)$(R)JaiScanMode_RBV" ) # info( autosaveFields, "VAL" ) } record( mbbi, "$(P)$(R)JaiScanMode_RBV" ) { field( DESC, "Trigger Mode" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(SC) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( TWVL, "2" ) field( THVL, "3" ) field( FRVL, "4" ) field( ZRST, "FullFr" ) field( ONST, "2/3 Fr" ) field( TWST, "1/2 Fr" ) field( THST, "1/4 Fr" ) field( FRST, "1/8 Fr" ) } record( mbbo, "$(P)$(R)JaiShutterMode" ) { field( DESC, "Numeric shutter value" ) field( DTYP, "stream" ) field( OUT, "@JaiCm140M.proto SetInt(SM) $(PORT).SER" ) field( DOL, "0" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "Presets" ) field( ONST, "ProgExp" ) field( FLNK, "$(P)$(R)JaiShutterMode_RBV" ) field( PINI, "YES" ) # info( autosaveFields, "VAL" ) } record( mbbi, "$(P)$(R)JaiShutterMode_RBV" ) { field( DESC, "Camera shutter mode" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(SM) $(PORT).SER " ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "Presets" ) field( ONST, "ProgExp" ) } record( mbbo, "$(P)$(R)JaiTriggerInput" ) { field( DESC, "Trigger Input" ) field( DTYP, "stream" ) field( DOL, "0" ) field( OUT, "@JaiCm140M.proto SetInt(TI) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "Camlink" ) field( ONST, "External" ) field( PINI, "YES" ) field( FLNK, "$(P)$(R)JaiTriggerInput_RBV" ) # info( autosaveFields, "VAL" ) } record( mbbi, "$(P)$(R)JaiTriggerInput_RBV" ) { field( DESC, "Trigger Input" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(TI) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "Camlink" ) field( ONST, "External" ) } # Raw Trigger Mode # JAI has option 3, TrigFreeRun, which interrupts any current frame readout, # does one triggered readout, then reverts to FreeRun mode. # We don't use it. record( mbbo, "$(P)$(R)JaiTriggerMode" ) { # field( TPRO, 2 ) field( DESC, "Trigger Mode" ) field( DTYP, "stream" ) field( DOL, "$(P)$(R)CamTriggerMode NPP NMS" ) field( OMSL, "closed_loop" ) field( OUT, "@JaiCm140M.proto SetInt(TR) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( TWVL, "2" ) field( THVL, "3" ) field( ZRST, "FreeRun" ) field( ONST, "External" ) field( TWST, "Pulse" ) field( THST, "TrigFreeRun" ) field( PINI, "YES" ) field( FLNK, "$(P)$(R)JaiTriggerMode_RBV" ) # info( autosaveFields, "VAL" ) } record( mbbi, "$(P)$(R)JaiTriggerMode_RBV" ) { # field( TPRO, 2 ) field( DESC, "Trigger Mode" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(TR) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( TWVL, "2" ) field( THVL, "3" ) field( ZRST, "FreeRun" ) field( ONST, "External" ) field( TWST, "Pulse" ) field( THST, "TrigFreeRun" ) field( FLNK, "$(P)$(R)CamTriggerMode_RBV" ) } record( mbbo, "$(P)$(R)CamTriggerMode" ) { field( FLNK, "$(P)$(R)JaiTriggerMode" ) } record( mbbi, "$(P)$(R)CamTriggerMode_RBV" ) { # field( DOL, "$(P)$(R)JaiTriggerMode_RBV CPP MS" ) # field( OMSL, "closed_loop" ) } record( mbbo, "$(P)$(R)JaiTriggerPolarity" ) { field( DESC, "Trigger Polarity" ) field( DTYP, "stream" ) field( DOL, "0" ) field( OUT, "@JaiCm140M.proto SetInt(TI) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "Normal" ) field( ONST, "Invert" ) field( PINI, "YES" ) field( FLNK, "$(P)$(R)JaiTriggerPolarity_RBV" ) # info( autosaveFields, "VAL" ) } record( mbbi, "$(P)$(R)JaiTriggerPolarity_RBV" ) { field( DESC, "Trigger Polarity" ) field( DTYP, "stream" ) field( INP, "@JaiCm140M.proto GetInt(TI) $(PORT).SER" ) field( ZRVL, "0" ) field( ONVL, "1" ) field( ZRST, "Normal" ) field( ONST, "Invert" ) } # Effective transmit rate is 40Mhz PixelClock record( ao, "$(P)$(R)XmitRate" ) { field( DOL, "40.0e6" ) field( EGU, "Px/Sec" ) field( PREC, "3" ) field( PINI, "YES" ) # info( autosaveFields, "VAL" ) } # Set SerThrottle to 30000 record( longout, "$(P)$(R)JaiSerThrottle" ) { field( DOL, "30000" ) field( PINI, "YES" ) field( OUT, "$(P)$(R)Feb$(PGP_LANE):SerThrottle" ) } # Include a serialMonitor.template monitor # This should be the first PV you process in the CamReConfigSeq # serialMonitor.template.template: Use 'substitute "PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiModel_RBV:MON_SER" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( CALC, "A>=2" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiModel_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MAJOR" ) field( FLNK, "$(P)$(R)SER_DEAD" ) info( autosaveFields, "" ) info( archiveFields, "" ) } record( bo, "$(P)$(R)SER_DEAD" ) { field( DOL, "$(P)$(R)JaiModel_RBV:MON_SER" ) field( OMSL, "closed_loop" ) field( ZNAM, "OK" ) field( ONAM, "No Comms" ) field( ZSV, "NO_ALARM" ) field( OSV, "MAJOR" ) } # 1 second RBV monitors # 10 second RBV monitors # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiBlackLevel_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiBlackLevel_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiBlackLevel_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiBlackLevel_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiCameraID_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiCameraID_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiCameraID_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiCameraID_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiFirmware_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiFirmware_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiFirmware_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiFirmware_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiGain_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiGain_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiGain_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiGain_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } #substitute "MON_PV=$(P)$(R)JaiModel_RBV" #include "rbvMonitor.template" # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiPixelDepth_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiPixelDepth_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiPixelDepth_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiPixelDepth_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiPresetShutter_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiPresetShutter_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiPresetShutter_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiPresetShutter_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiProgExposure_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiProgExposure_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiProgExposure_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiProgExposure_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiScanMode_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiScanMode_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiScanMode_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiScanMode_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiShutterMode_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiShutterMode_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiShutterMode_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiShutterMode_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiTriggerInput_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiTriggerInput_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiTriggerInput_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiTriggerInput_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiTriggerMode_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiTriggerMode_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiTriggerMode_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiTriggerMode_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # rbvMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiTriggerPolarity_RBV:MON" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiTriggerPolarity_RBV.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiTriggerPolarity_RBV.STAT NPP NMS" ) field( INPD, "0" ) field( CALC, "(A<2) && (B>=2||(D&&C=18))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiTriggerPolarity_RBV.PROC PP NMS" ) field( SCAN, "10 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # Put monitors # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiBlackLevel:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiBlackLevel.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiBlackLevel.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiBlackLevel.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiBlackLevel_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiBlackLevel.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiCameraID:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiCameraID.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiCameraID.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiCameraID.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiCameraID_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiCameraID.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiGain:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiGain.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiGain.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiGain.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiGain_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiGain.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiPixelDepth:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiPixelDepth.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiPixelDepth.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiPixelDepth.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiPixelDepth_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiPixelDepth.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiPresetShutter:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiPresetShutter.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiPresetShutter.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiPresetShutter.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiPresetShutter_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiPresetShutter.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiProgExposure:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiProgExposure.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiProgExposure.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiProgExposure.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiProgExposure_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiProgExposure.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiScanMode:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiScanMode.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiScanMode.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiScanMode.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiScanMode_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiScanMode.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiShutterMode:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiShutterMode.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiShutterMode.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiShutterMode.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiShutterMode_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiShutterMode.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiTriggerInput:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiTriggerInput.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiTriggerInput.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiTriggerInput.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiTriggerInput_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiTriggerInput.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiTriggerMode:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiTriggerMode.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiTriggerMode.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiTriggerMode.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiTriggerMode_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiTriggerMode.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) } # putMonitor.template: Use 'substitute "MON_PV=XXX:YYY:PV2MONITOR"' before including this file record( calcout, "$(P)$(R)JaiTriggerPolarity:MON_PUT" ) { field( INPA, "$(P)$(R)JaiModel_RBV.SEVR NPP NMS" ) field( INPB, "$(P)$(R)JaiTriggerPolarity.SEVR NPP NMS" ) field( INPC, "$(P)$(R)JaiTriggerPolarity.STAT NPP NMS" ) field( INPD, "1" ) field( INPE, "0" ) field( INPF, "$(P)$(R)JaiTriggerPolarity.VAL NPP NMS" ) field( INPG, "$(P)$(R)JaiTriggerPolarity_RBV.VAL NPP NMS" ) field( CALC, "(A<2)&&(B>=2||(D&&C=18)||(E!=0&&F!=G))" ) field( OOPT, "When Non-zero" ) field( OUT, "$(P)$(R)JaiTriggerPolarity.PROC PP NMS" ) field( SCAN, "1 second" ) field( HIGH, "1" ) field( HSV, "MINOR" ) info( autosaveFields, "" ) info( archiveFields, "" ) }