# # PS waveforms to be filled by state codes # grecord(bi,"$(PREF)PS:SCALER:FILL_FLAG") { field(DESC, "Fill flag for PS WV ") field(ONAM, "FILL") field(ZNAM, "STOP") field(VAL , "1") field(PINI, "YES") } grecord(ai,"$(PREF)PS:SCALER:INTERVAL") { field(DESC, "Update time for PS WV ") field(VAL , "1.0") field(PINI, "YES") } ############################################################# ARM A ############################################################# grecord(stringin,"$(PREF)PS:A:scaler_r1:SNL:TEXT") { field(DESC, "STATUS from PS SNL") } grecord(waveform,"$(PREF)PS:A:scaler_r1_wf") { field(NELM, "145") field(LOPR, "1") field(HOPR, "145") field(FTVL, "DOUBLE") } grecord(waveform,"$(PREF)PS:A:x_wf") { field(NELM, "145") field(LOPR, "1") field(HOPR, "145") field(FTVL, "DOUBLE") } grecord(ai,"$(PREF)PS:A:scaler_r1_wf_max") { field(DESC, "Max value of PS WV") field(VAL , "0.0") field(PINI, "YES") } grecord(ai,"$(PREF)PS:A:scaler_r1_wf_min") { field(DESC, "Min value of PS WV") field(VAL , "0.0") field(PINI, "YES") } grecord(ai,"$(PREF)PS:A:scaler_r1_wf_total") { field(DESC, "Total value of PS WV") field(VAL , "0.0") field(PINI, "YES") } ############################################################# ARM B ############################################################# grecord(stringin,"$(PREF)PS:B:scaler_r1:SNL:TEXT") { field(DESC, "STATUS from PS SNL") } grecord(waveform,"$(PREF)PS:B:scaler_r1_wf") { field(NELM, "145") field(LOPR, "1") field(HOPR, "145") field(FTVL, "DOUBLE") } grecord(waveform,"$(PREF)PS:B:x_wf") { field(NELM, "145") field(LOPR, "1") field(HOPR, "145") field(FTVL, "DOUBLE") } grecord(ai,"$(PREF)PS:B:scaler_r1_wf_max") { field(DESC, "Max value of PS WV") field(VAL , "0.0") field(PINI, "YES") } grecord(ai,"$(PREF)PS:B:scaler_r1_wf_min") { field(DESC, "Min value of PS WV") field(VAL , "0.0") field(PINI, "YES") } grecord(ai,"$(PREF)PS:B:scaler_r1_wf_total") { field(DESC, "Total value of PS WV") field(VAL , "0.0") field(PINI, "YES") } ############################################################# TOTAL ############################################################# grecord(calc, "$(PREF)PS:scaler_r1_wf_total") { field(INPA, "$(PREF)PS:A:scaler_r1_wf_total") field(INPB, "$(PREF)PS:B:scaler_r1_wf_total") field(SCAN, ".2 second") field(CALC, "A+B") }