# # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)0_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)0_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)0_SUM_LAST_N_MAX", "$(P,undefined)0_SUM_MAX" ) alias( "$(P,undefined)0_SUM_LAST_N_AVG", "$(P,undefined)0_SUM_AVG" ) alias( "$(P,undefined)0_SUM_LAST_N_MIN", "$(P,undefined)0_SUM_MIN" ) alias( "$(P,undefined)0_SUM_LAST_N_RMS", "$(P,undefined)0_SUM_RMS" ) alias( "$(P,undefined)0_SUM_LAST_N_STD", "$(P,undefined)0_SUM_STD" ) alias( "$(P,undefined)0_SUM_LAST_N_SLOPE", "$(P,undefined)0_SUM_SLOPE" ) alias( "$(P,undefined)0_SUM_LAST_N_OFFSET", "$(P,undefined)0_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)0_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)0_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)0_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)0_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)0_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)0_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)0_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)0_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)0_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)0_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)0_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)0_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)0_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)0_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)0_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)0_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)0_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)0_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)0_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)0_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)0_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)0_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)0_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)0_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)0_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)0_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)0_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)0_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)0_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)0_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)0_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)0_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)0_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)0_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)0_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)0_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)0_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)0_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)0_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)0_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)0_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)0_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)0_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)0_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)0_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)0_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)1_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)1_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)1_SUM_LAST_N_MAX", "$(P,undefined)1_SUM_MAX" ) alias( "$(P,undefined)1_SUM_LAST_N_AVG", "$(P,undefined)1_SUM_AVG" ) alias( "$(P,undefined)1_SUM_LAST_N_MIN", "$(P,undefined)1_SUM_MIN" ) alias( "$(P,undefined)1_SUM_LAST_N_RMS", "$(P,undefined)1_SUM_RMS" ) alias( "$(P,undefined)1_SUM_LAST_N_STD", "$(P,undefined)1_SUM_STD" ) alias( "$(P,undefined)1_SUM_LAST_N_SLOPE", "$(P,undefined)1_SUM_SLOPE" ) alias( "$(P,undefined)1_SUM_LAST_N_OFFSET", "$(P,undefined)1_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)1_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)1_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)1_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)1_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)1_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)1_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)1_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)1_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)1_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)1_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)1_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)1_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)1_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)1_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)1_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)1_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)1_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)1_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)1_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)1_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)1_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)1_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)1_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)1_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)1_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)1_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)1_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)1_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)1_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)1_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)1_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)1_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)1_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)1_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)1_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)1_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)1_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)1_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)1_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)1_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)1_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)1_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)1_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)1_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)1_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)1_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)2_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)2_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)2_SUM_LAST_N_MAX", "$(P,undefined)2_SUM_MAX" ) alias( "$(P,undefined)2_SUM_LAST_N_AVG", "$(P,undefined)2_SUM_AVG" ) alias( "$(P,undefined)2_SUM_LAST_N_MIN", "$(P,undefined)2_SUM_MIN" ) alias( "$(P,undefined)2_SUM_LAST_N_RMS", "$(P,undefined)2_SUM_RMS" ) alias( "$(P,undefined)2_SUM_LAST_N_STD", "$(P,undefined)2_SUM_STD" ) alias( "$(P,undefined)2_SUM_LAST_N_SLOPE", "$(P,undefined)2_SUM_SLOPE" ) alias( "$(P,undefined)2_SUM_LAST_N_OFFSET", "$(P,undefined)2_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)2_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)2_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)2_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)2_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)2_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)2_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)2_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)2_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)2_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)2_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)2_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)2_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)2_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)2_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)2_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)2_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)2_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)2_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)2_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)2_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)2_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)2_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)2_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)2_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)2_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)2_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)2_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)2_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)2_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)2_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)2_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)2_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)2_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)2_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)2_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)2_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)2_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)2_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)2_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)2_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)2_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)2_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)2_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)2_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)2_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)2_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)3_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)3_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)3_SUM_LAST_N_MAX", "$(P,undefined)3_SUM_MAX" ) alias( "$(P,undefined)3_SUM_LAST_N_AVG", "$(P,undefined)3_SUM_AVG" ) alias( "$(P,undefined)3_SUM_LAST_N_MIN", "$(P,undefined)3_SUM_MIN" ) alias( "$(P,undefined)3_SUM_LAST_N_RMS", "$(P,undefined)3_SUM_RMS" ) alias( "$(P,undefined)3_SUM_LAST_N_STD", "$(P,undefined)3_SUM_STD" ) alias( "$(P,undefined)3_SUM_LAST_N_SLOPE", "$(P,undefined)3_SUM_SLOPE" ) alias( "$(P,undefined)3_SUM_LAST_N_OFFSET", "$(P,undefined)3_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)3_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)3_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)3_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)3_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)3_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)3_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)3_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)3_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)3_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)3_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)3_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)3_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)3_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)3_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)3_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)3_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)3_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)3_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)3_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)3_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)3_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)3_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)3_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)3_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)3_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)3_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)3_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)3_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)3_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)3_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)3_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)3_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)3_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)3_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)3_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)3_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)3_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)3_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)3_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)3_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)3_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)3_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)3_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)3_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)3_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)3_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)4_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)4_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)4_SUM_LAST_N_MAX", "$(P,undefined)4_SUM_MAX" ) alias( "$(P,undefined)4_SUM_LAST_N_AVG", "$(P,undefined)4_SUM_AVG" ) alias( "$(P,undefined)4_SUM_LAST_N_MIN", "$(P,undefined)4_SUM_MIN" ) alias( "$(P,undefined)4_SUM_LAST_N_RMS", "$(P,undefined)4_SUM_RMS" ) alias( "$(P,undefined)4_SUM_LAST_N_STD", "$(P,undefined)4_SUM_STD" ) alias( "$(P,undefined)4_SUM_LAST_N_SLOPE", "$(P,undefined)4_SUM_SLOPE" ) alias( "$(P,undefined)4_SUM_LAST_N_OFFSET", "$(P,undefined)4_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)4_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)4_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)4_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)4_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)4_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)4_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)4_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)4_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)4_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)4_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)4_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)4_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)4_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)4_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)4_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)4_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)4_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)4_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)4_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)4_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)4_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)4_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)4_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)4_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)4_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)4_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)4_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)4_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)4_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)4_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)4_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)4_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)4_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)4_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)4_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)4_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)4_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)4_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)4_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)4_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)4_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)4_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)4_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)4_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)4_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)4_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)5_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)5_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)5_SUM_LAST_N_MAX", "$(P,undefined)5_SUM_MAX" ) alias( "$(P,undefined)5_SUM_LAST_N_AVG", "$(P,undefined)5_SUM_AVG" ) alias( "$(P,undefined)5_SUM_LAST_N_MIN", "$(P,undefined)5_SUM_MIN" ) alias( "$(P,undefined)5_SUM_LAST_N_RMS", "$(P,undefined)5_SUM_RMS" ) alias( "$(P,undefined)5_SUM_LAST_N_STD", "$(P,undefined)5_SUM_STD" ) alias( "$(P,undefined)5_SUM_LAST_N_SLOPE", "$(P,undefined)5_SUM_SLOPE" ) alias( "$(P,undefined)5_SUM_LAST_N_OFFSET", "$(P,undefined)5_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)5_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)5_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)5_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)5_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)5_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)5_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)5_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)5_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)5_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)5_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)5_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)5_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)5_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)5_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)5_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)5_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)5_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)5_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)5_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)5_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)5_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)5_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)5_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)5_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)5_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)5_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)5_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)5_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)5_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)5_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)5_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)5_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)5_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)5_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)5_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)5_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)5_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)5_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)5_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)5_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)5_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)5_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)5_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)5_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)5_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)5_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)6_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)6_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)6_SUM_LAST_N_MAX", "$(P,undefined)6_SUM_MAX" ) alias( "$(P,undefined)6_SUM_LAST_N_AVG", "$(P,undefined)6_SUM_AVG" ) alias( "$(P,undefined)6_SUM_LAST_N_MIN", "$(P,undefined)6_SUM_MIN" ) alias( "$(P,undefined)6_SUM_LAST_N_RMS", "$(P,undefined)6_SUM_RMS" ) alias( "$(P,undefined)6_SUM_LAST_N_STD", "$(P,undefined)6_SUM_STD" ) alias( "$(P,undefined)6_SUM_LAST_N_SLOPE", "$(P,undefined)6_SUM_SLOPE" ) alias( "$(P,undefined)6_SUM_LAST_N_OFFSET", "$(P,undefined)6_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)6_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)6_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)6_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)6_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)6_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)6_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)6_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)6_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)6_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)6_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)6_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)6_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)6_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)6_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)6_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)6_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)6_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)6_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)6_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)6_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)6_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)6_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)6_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)6_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)6_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)6_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)6_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)6_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)6_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)6_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)6_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)6_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)6_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)6_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)6_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)6_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)6_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)6_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)6_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)6_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)6_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)6_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)6_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)6_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)6_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)6_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)7_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)7_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)7_SUM_LAST_N_MAX", "$(P,undefined)7_SUM_MAX" ) alias( "$(P,undefined)7_SUM_LAST_N_AVG", "$(P,undefined)7_SUM_AVG" ) alias( "$(P,undefined)7_SUM_LAST_N_MIN", "$(P,undefined)7_SUM_MIN" ) alias( "$(P,undefined)7_SUM_LAST_N_RMS", "$(P,undefined)7_SUM_RMS" ) alias( "$(P,undefined)7_SUM_LAST_N_STD", "$(P,undefined)7_SUM_STD" ) alias( "$(P,undefined)7_SUM_LAST_N_SLOPE", "$(P,undefined)7_SUM_SLOPE" ) alias( "$(P,undefined)7_SUM_LAST_N_OFFSET", "$(P,undefined)7_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)7_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)7_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)7_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)7_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)7_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)7_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)7_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)7_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)7_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)7_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)7_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)7_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)7_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)7_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)7_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)7_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)7_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)7_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)7_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)7_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)7_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)7_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)7_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)7_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)7_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)7_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)7_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)7_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)7_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)7_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)7_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)7_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)7_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)7_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)7_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)7_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)7_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)7_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)7_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)7_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)7_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)7_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)7_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)7_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)7_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)7_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)8_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)8_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)8_SUM_LAST_N_MAX", "$(P,undefined)8_SUM_MAX" ) alias( "$(P,undefined)8_SUM_LAST_N_AVG", "$(P,undefined)8_SUM_AVG" ) alias( "$(P,undefined)8_SUM_LAST_N_MIN", "$(P,undefined)8_SUM_MIN" ) alias( "$(P,undefined)8_SUM_LAST_N_RMS", "$(P,undefined)8_SUM_RMS" ) alias( "$(P,undefined)8_SUM_LAST_N_STD", "$(P,undefined)8_SUM_STD" ) alias( "$(P,undefined)8_SUM_LAST_N_SLOPE", "$(P,undefined)8_SUM_SLOPE" ) alias( "$(P,undefined)8_SUM_LAST_N_OFFSET", "$(P,undefined)8_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)8_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)8_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)8_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)8_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)8_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)8_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)8_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)8_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)8_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)8_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)8_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)8_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)8_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)8_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)8_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)8_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)8_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)8_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)8_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)8_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)8_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)8_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)8_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)8_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)8_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)8_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)8_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)8_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)8_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)8_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)8_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)8_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)8_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)8_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)8_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)8_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)8_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)8_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)8_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)8_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)8_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)8_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)8_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)8_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)8_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)8_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)9_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)9_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)9_SUM_LAST_N_MAX", "$(P,undefined)9_SUM_MAX" ) alias( "$(P,undefined)9_SUM_LAST_N_AVG", "$(P,undefined)9_SUM_AVG" ) alias( "$(P,undefined)9_SUM_LAST_N_MIN", "$(P,undefined)9_SUM_MIN" ) alias( "$(P,undefined)9_SUM_LAST_N_RMS", "$(P,undefined)9_SUM_RMS" ) alias( "$(P,undefined)9_SUM_LAST_N_STD", "$(P,undefined)9_SUM_STD" ) alias( "$(P,undefined)9_SUM_LAST_N_SLOPE", "$(P,undefined)9_SUM_SLOPE" ) alias( "$(P,undefined)9_SUM_LAST_N_OFFSET", "$(P,undefined)9_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)9_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)9_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)9_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)9_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)9_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)9_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)9_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)9_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)9_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)9_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)9_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)9_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)9_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)9_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)9_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)9_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)9_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)9_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)9_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)9_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)9_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)9_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)9_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)9_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)9_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)9_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)9_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)9_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)9_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)9_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)9_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)9_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)9_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)9_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)9_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)9_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)9_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)9_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)9_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)9_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)9_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)9_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)9_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)9_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)9_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)9_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)10_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)10_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)10_SUM_LAST_N_MAX", "$(P,undefined)10_SUM_MAX" ) alias( "$(P,undefined)10_SUM_LAST_N_AVG", "$(P,undefined)10_SUM_AVG" ) alias( "$(P,undefined)10_SUM_LAST_N_MIN", "$(P,undefined)10_SUM_MIN" ) alias( "$(P,undefined)10_SUM_LAST_N_RMS", "$(P,undefined)10_SUM_RMS" ) alias( "$(P,undefined)10_SUM_LAST_N_STD", "$(P,undefined)10_SUM_STD" ) alias( "$(P,undefined)10_SUM_LAST_N_SLOPE", "$(P,undefined)10_SUM_SLOPE" ) alias( "$(P,undefined)10_SUM_LAST_N_OFFSET", "$(P,undefined)10_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)10_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)10_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)10_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)10_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)10_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)10_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)10_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)10_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)10_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)10_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)10_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)10_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)10_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)10_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)10_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)10_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)10_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)10_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)10_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)10_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)10_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)10_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)10_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)10_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)10_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)10_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)10_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)10_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)10_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)10_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)10_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)10_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)10_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)10_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)10_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)10_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)10_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)10_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)10_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)10_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)10_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)10_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)10_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)10_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)10_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)10_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)11_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)11_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)11_SUM_LAST_N_MAX", "$(P,undefined)11_SUM_MAX" ) alias( "$(P,undefined)11_SUM_LAST_N_AVG", "$(P,undefined)11_SUM_AVG" ) alias( "$(P,undefined)11_SUM_LAST_N_MIN", "$(P,undefined)11_SUM_MIN" ) alias( "$(P,undefined)11_SUM_LAST_N_RMS", "$(P,undefined)11_SUM_RMS" ) alias( "$(P,undefined)11_SUM_LAST_N_STD", "$(P,undefined)11_SUM_STD" ) alias( "$(P,undefined)11_SUM_LAST_N_SLOPE", "$(P,undefined)11_SUM_SLOPE" ) alias( "$(P,undefined)11_SUM_LAST_N_OFFSET", "$(P,undefined)11_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)11_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)11_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)11_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)11_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)11_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)11_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)11_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)11_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)11_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)11_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)11_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)11_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)11_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)11_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)11_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)11_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)11_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)11_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)11_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)11_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)11_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)11_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)11_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)11_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)11_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)11_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)11_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)11_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)11_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)11_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)11_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)11_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)11_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)11_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)11_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)11_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)11_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)11_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)11_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)11_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)11_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)11_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)11_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)11_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)11_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)11_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)12_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)12_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)12_SUM_LAST_N_MAX", "$(P,undefined)12_SUM_MAX" ) alias( "$(P,undefined)12_SUM_LAST_N_AVG", "$(P,undefined)12_SUM_AVG" ) alias( "$(P,undefined)12_SUM_LAST_N_MIN", "$(P,undefined)12_SUM_MIN" ) alias( "$(P,undefined)12_SUM_LAST_N_RMS", "$(P,undefined)12_SUM_RMS" ) alias( "$(P,undefined)12_SUM_LAST_N_STD", "$(P,undefined)12_SUM_STD" ) alias( "$(P,undefined)12_SUM_LAST_N_SLOPE", "$(P,undefined)12_SUM_SLOPE" ) alias( "$(P,undefined)12_SUM_LAST_N_OFFSET", "$(P,undefined)12_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)12_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)12_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)12_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)12_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)12_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)12_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)12_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)12_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)12_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)12_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)12_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)12_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)12_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)12_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)12_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)12_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)12_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)12_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)12_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)12_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)12_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)12_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)12_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)12_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)12_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)12_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)12_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)12_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)12_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)12_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)12_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)12_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)12_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)12_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)12_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)12_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)12_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)12_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)12_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)12_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)12_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)12_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)12_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)12_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)12_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)12_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)13_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)13_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)13_SUM_LAST_N_MAX", "$(P,undefined)13_SUM_MAX" ) alias( "$(P,undefined)13_SUM_LAST_N_AVG", "$(P,undefined)13_SUM_AVG" ) alias( "$(P,undefined)13_SUM_LAST_N_MIN", "$(P,undefined)13_SUM_MIN" ) alias( "$(P,undefined)13_SUM_LAST_N_RMS", "$(P,undefined)13_SUM_RMS" ) alias( "$(P,undefined)13_SUM_LAST_N_STD", "$(P,undefined)13_SUM_STD" ) alias( "$(P,undefined)13_SUM_LAST_N_SLOPE", "$(P,undefined)13_SUM_SLOPE" ) alias( "$(P,undefined)13_SUM_LAST_N_OFFSET", "$(P,undefined)13_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)13_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)13_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)13_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)13_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)13_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)13_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)13_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)13_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)13_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)13_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)13_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)13_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)13_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)13_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)13_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)13_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)13_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)13_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)13_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)13_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)13_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)13_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)13_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)13_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)13_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)13_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)13_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)13_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)13_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)13_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)13_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)13_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)13_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)13_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)13_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)13_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)13_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)13_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)13_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)13_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)13_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)13_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)13_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)13_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)13_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)13_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)14_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)14_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)14_SUM_LAST_N_MAX", "$(P,undefined)14_SUM_MAX" ) alias( "$(P,undefined)14_SUM_LAST_N_AVG", "$(P,undefined)14_SUM_AVG" ) alias( "$(P,undefined)14_SUM_LAST_N_MIN", "$(P,undefined)14_SUM_MIN" ) alias( "$(P,undefined)14_SUM_LAST_N_RMS", "$(P,undefined)14_SUM_RMS" ) alias( "$(P,undefined)14_SUM_LAST_N_STD", "$(P,undefined)14_SUM_STD" ) alias( "$(P,undefined)14_SUM_LAST_N_SLOPE", "$(P,undefined)14_SUM_SLOPE" ) alias( "$(P,undefined)14_SUM_LAST_N_OFFSET", "$(P,undefined)14_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)14_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)14_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)14_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)14_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)14_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)14_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)14_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)14_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)14_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)14_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)14_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)14_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)14_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)14_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)14_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)14_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)14_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)14_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)14_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)14_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)14_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)14_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)14_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)14_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)14_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)14_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)14_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)14_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)14_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)14_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)14_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)14_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)14_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)14_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)14_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)14_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)14_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)14_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)14_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)14_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)14_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)14_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)14_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)14_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)14_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)14_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)15_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)15_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)15_SUM_LAST_N_MAX", "$(P,undefined)15_SUM_MAX" ) alias( "$(P,undefined)15_SUM_LAST_N_AVG", "$(P,undefined)15_SUM_AVG" ) alias( "$(P,undefined)15_SUM_LAST_N_MIN", "$(P,undefined)15_SUM_MIN" ) alias( "$(P,undefined)15_SUM_LAST_N_RMS", "$(P,undefined)15_SUM_RMS" ) alias( "$(P,undefined)15_SUM_LAST_N_STD", "$(P,undefined)15_SUM_STD" ) alias( "$(P,undefined)15_SUM_LAST_N_SLOPE", "$(P,undefined)15_SUM_SLOPE" ) alias( "$(P,undefined)15_SUM_LAST_N_OFFSET", "$(P,undefined)15_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)15_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)15_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)15_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)15_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)15_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)15_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)15_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)15_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)15_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)15_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)15_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)15_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)15_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)15_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)15_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)15_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)15_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)15_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)15_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)15_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)15_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)15_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)15_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)15_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)15_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)15_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)15_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)15_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)15_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)15_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)15_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)15_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)15_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)15_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)15_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)15_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)15_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)15_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)15_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)15_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)15_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)15_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)15_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)15_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)15_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)15_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)16_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)16_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)16_SUM_LAST_N_MAX", "$(P,undefined)16_SUM_MAX" ) alias( "$(P,undefined)16_SUM_LAST_N_AVG", "$(P,undefined)16_SUM_AVG" ) alias( "$(P,undefined)16_SUM_LAST_N_MIN", "$(P,undefined)16_SUM_MIN" ) alias( "$(P,undefined)16_SUM_LAST_N_RMS", "$(P,undefined)16_SUM_RMS" ) alias( "$(P,undefined)16_SUM_LAST_N_STD", "$(P,undefined)16_SUM_STD" ) alias( "$(P,undefined)16_SUM_LAST_N_SLOPE", "$(P,undefined)16_SUM_SLOPE" ) alias( "$(P,undefined)16_SUM_LAST_N_OFFSET", "$(P,undefined)16_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)16_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)16_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)16_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)16_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)16_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)16_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)16_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)16_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)16_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)16_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)16_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)16_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)16_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)16_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)16_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)16_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)16_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)16_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)16_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)16_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)16_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)16_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)16_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)16_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)16_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)16_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)16_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)16_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)16_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)16_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)16_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)16_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)16_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)16_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)16_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)16_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)16_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)16_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)16_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)16_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)16_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)16_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)16_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)16_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)16_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)16_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)17_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)17_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)17_SUM_LAST_N_MAX", "$(P,undefined)17_SUM_MAX" ) alias( "$(P,undefined)17_SUM_LAST_N_AVG", "$(P,undefined)17_SUM_AVG" ) alias( "$(P,undefined)17_SUM_LAST_N_MIN", "$(P,undefined)17_SUM_MIN" ) alias( "$(P,undefined)17_SUM_LAST_N_RMS", "$(P,undefined)17_SUM_RMS" ) alias( "$(P,undefined)17_SUM_LAST_N_STD", "$(P,undefined)17_SUM_STD" ) alias( "$(P,undefined)17_SUM_LAST_N_SLOPE", "$(P,undefined)17_SUM_SLOPE" ) alias( "$(P,undefined)17_SUM_LAST_N_OFFSET", "$(P,undefined)17_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)17_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)17_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)17_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)17_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)17_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)17_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)17_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)17_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)17_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)17_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)17_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)17_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)17_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)17_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)17_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)17_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)17_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)17_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)17_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)17_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)17_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)17_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)17_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)17_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)17_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)17_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)17_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)17_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)17_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)17_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)17_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)17_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)17_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)17_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)17_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)17_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)17_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)17_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)17_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)17_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)17_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)17_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)17_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)17_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)17_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)17_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)18_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)18_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)18_SUM_LAST_N_MAX", "$(P,undefined)18_SUM_MAX" ) alias( "$(P,undefined)18_SUM_LAST_N_AVG", "$(P,undefined)18_SUM_AVG" ) alias( "$(P,undefined)18_SUM_LAST_N_MIN", "$(P,undefined)18_SUM_MIN" ) alias( "$(P,undefined)18_SUM_LAST_N_RMS", "$(P,undefined)18_SUM_RMS" ) alias( "$(P,undefined)18_SUM_LAST_N_STD", "$(P,undefined)18_SUM_STD" ) alias( "$(P,undefined)18_SUM_LAST_N_SLOPE", "$(P,undefined)18_SUM_SLOPE" ) alias( "$(P,undefined)18_SUM_LAST_N_OFFSET", "$(P,undefined)18_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)18_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)18_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)18_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)18_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)18_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)18_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)18_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)18_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)18_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)18_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)18_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)18_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)18_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)18_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)18_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)18_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)18_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)18_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)18_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)18_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)18_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)18_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)18_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)18_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)18_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)18_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)18_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)18_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)18_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)18_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)18_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)18_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)18_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)18_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)18_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)18_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)18_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)18_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)18_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)18_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)18_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)18_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)18_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)18_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)18_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)18_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)19_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)19_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)19_SUM_LAST_N_MAX", "$(P,undefined)19_SUM_MAX" ) alias( "$(P,undefined)19_SUM_LAST_N_AVG", "$(P,undefined)19_SUM_AVG" ) alias( "$(P,undefined)19_SUM_LAST_N_MIN", "$(P,undefined)19_SUM_MIN" ) alias( "$(P,undefined)19_SUM_LAST_N_RMS", "$(P,undefined)19_SUM_RMS" ) alias( "$(P,undefined)19_SUM_LAST_N_STD", "$(P,undefined)19_SUM_STD" ) alias( "$(P,undefined)19_SUM_LAST_N_SLOPE", "$(P,undefined)19_SUM_SLOPE" ) alias( "$(P,undefined)19_SUM_LAST_N_OFFSET", "$(P,undefined)19_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)19_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)19_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)19_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)19_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)19_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)19_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)19_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)19_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)19_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)19_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)19_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)19_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)19_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)19_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)19_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)19_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)19_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)19_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)19_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)19_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)19_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)19_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)19_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)19_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)19_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)19_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)19_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)19_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)19_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)19_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)19_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)19_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)19_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)19_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)19_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)19_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)19_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)19_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)19_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)19_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)19_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)19_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)19_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)19_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)19_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)19_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)20_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)20_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)20_SUM_LAST_N_MAX", "$(P,undefined)20_SUM_MAX" ) alias( "$(P,undefined)20_SUM_LAST_N_AVG", "$(P,undefined)20_SUM_AVG" ) alias( "$(P,undefined)20_SUM_LAST_N_MIN", "$(P,undefined)20_SUM_MIN" ) alias( "$(P,undefined)20_SUM_LAST_N_RMS", "$(P,undefined)20_SUM_RMS" ) alias( "$(P,undefined)20_SUM_LAST_N_STD", "$(P,undefined)20_SUM_STD" ) alias( "$(P,undefined)20_SUM_LAST_N_SLOPE", "$(P,undefined)20_SUM_SLOPE" ) alias( "$(P,undefined)20_SUM_LAST_N_OFFSET", "$(P,undefined)20_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)20_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)20_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)20_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)20_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)20_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)20_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)20_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)20_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)20_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)20_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)20_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)20_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)20_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)20_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)20_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)20_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)20_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)20_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)20_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)20_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)20_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)20_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)20_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)20_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)20_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)20_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)20_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)20_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)20_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)20_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)20_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)20_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)20_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)20_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)20_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)20_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)20_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)20_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)20_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)20_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)20_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)20_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)20_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)20_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)20_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)20_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)21_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)21_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)21_SUM_LAST_N_MAX", "$(P,undefined)21_SUM_MAX" ) alias( "$(P,undefined)21_SUM_LAST_N_AVG", "$(P,undefined)21_SUM_AVG" ) alias( "$(P,undefined)21_SUM_LAST_N_MIN", "$(P,undefined)21_SUM_MIN" ) alias( "$(P,undefined)21_SUM_LAST_N_RMS", "$(P,undefined)21_SUM_RMS" ) alias( "$(P,undefined)21_SUM_LAST_N_STD", "$(P,undefined)21_SUM_STD" ) alias( "$(P,undefined)21_SUM_LAST_N_SLOPE", "$(P,undefined)21_SUM_SLOPE" ) alias( "$(P,undefined)21_SUM_LAST_N_OFFSET", "$(P,undefined)21_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)21_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)21_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)21_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)21_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)21_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)21_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)21_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)21_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)21_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)21_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)21_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)21_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)21_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)21_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)21_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)21_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)21_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)21_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)21_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)21_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)21_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)21_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)21_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)21_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)21_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)21_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)21_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)21_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)21_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)21_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)21_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)21_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)21_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)21_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)21_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)21_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)21_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)21_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)21_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)21_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)21_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)21_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)21_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)21_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)21_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)21_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)22_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)22_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)22_SUM_LAST_N_MAX", "$(P,undefined)22_SUM_MAX" ) alias( "$(P,undefined)22_SUM_LAST_N_AVG", "$(P,undefined)22_SUM_AVG" ) alias( "$(P,undefined)22_SUM_LAST_N_MIN", "$(P,undefined)22_SUM_MIN" ) alias( "$(P,undefined)22_SUM_LAST_N_RMS", "$(P,undefined)22_SUM_RMS" ) alias( "$(P,undefined)22_SUM_LAST_N_STD", "$(P,undefined)22_SUM_STD" ) alias( "$(P,undefined)22_SUM_LAST_N_SLOPE", "$(P,undefined)22_SUM_SLOPE" ) alias( "$(P,undefined)22_SUM_LAST_N_OFFSET", "$(P,undefined)22_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)22_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)22_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)22_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)22_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)22_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)22_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)22_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)22_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)22_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)22_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)22_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)22_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)22_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)22_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)22_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)22_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)22_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)22_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)22_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)22_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)22_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)22_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)22_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)22_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)22_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)22_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)22_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)22_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)22_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)22_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)22_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)22_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)22_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)22_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)22_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)22_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)22_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)22_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)22_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)22_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)22_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)22_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)22_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)22_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)22_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)22_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)23_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)23_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)23_SUM_LAST_N_MAX", "$(P,undefined)23_SUM_MAX" ) alias( "$(P,undefined)23_SUM_LAST_N_AVG", "$(P,undefined)23_SUM_AVG" ) alias( "$(P,undefined)23_SUM_LAST_N_MIN", "$(P,undefined)23_SUM_MIN" ) alias( "$(P,undefined)23_SUM_LAST_N_RMS", "$(P,undefined)23_SUM_RMS" ) alias( "$(P,undefined)23_SUM_LAST_N_STD", "$(P,undefined)23_SUM_STD" ) alias( "$(P,undefined)23_SUM_LAST_N_SLOPE", "$(P,undefined)23_SUM_SLOPE" ) alias( "$(P,undefined)23_SUM_LAST_N_OFFSET", "$(P,undefined)23_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)23_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)23_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)23_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)23_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)23_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)23_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)23_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)23_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)23_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)23_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)23_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)23_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)23_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)23_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)23_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)23_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)23_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)23_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)23_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)23_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)23_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)23_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)23_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)23_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)23_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)23_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)23_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)23_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)23_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)23_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)23_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)23_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)23_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)23_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)23_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)23_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)23_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)23_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)23_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)23_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)23_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)23_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)23_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)23_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)23_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)23_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)24_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)24_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)24_SUM_LAST_N_MAX", "$(P,undefined)24_SUM_MAX" ) alias( "$(P,undefined)24_SUM_LAST_N_AVG", "$(P,undefined)24_SUM_AVG" ) alias( "$(P,undefined)24_SUM_LAST_N_MIN", "$(P,undefined)24_SUM_MIN" ) alias( "$(P,undefined)24_SUM_LAST_N_RMS", "$(P,undefined)24_SUM_RMS" ) alias( "$(P,undefined)24_SUM_LAST_N_STD", "$(P,undefined)24_SUM_STD" ) alias( "$(P,undefined)24_SUM_LAST_N_SLOPE", "$(P,undefined)24_SUM_SLOPE" ) alias( "$(P,undefined)24_SUM_LAST_N_OFFSET", "$(P,undefined)24_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)24_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)24_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)24_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)24_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)24_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)24_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)24_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)24_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)24_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)24_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)24_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)24_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)24_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)24_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)24_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)24_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)24_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)24_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)24_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)24_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)24_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)24_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)24_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)24_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)24_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)24_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)24_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)24_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)24_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)24_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)24_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)24_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)24_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)24_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)24_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)24_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)24_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)24_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)24_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)24_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)24_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)24_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)24_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)24_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)24_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)24_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)25_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)25_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)25_SUM_LAST_N_MAX", "$(P,undefined)25_SUM_MAX" ) alias( "$(P,undefined)25_SUM_LAST_N_AVG", "$(P,undefined)25_SUM_AVG" ) alias( "$(P,undefined)25_SUM_LAST_N_MIN", "$(P,undefined)25_SUM_MIN" ) alias( "$(P,undefined)25_SUM_LAST_N_RMS", "$(P,undefined)25_SUM_RMS" ) alias( "$(P,undefined)25_SUM_LAST_N_STD", "$(P,undefined)25_SUM_STD" ) alias( "$(P,undefined)25_SUM_LAST_N_SLOPE", "$(P,undefined)25_SUM_SLOPE" ) alias( "$(P,undefined)25_SUM_LAST_N_OFFSET", "$(P,undefined)25_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)25_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)25_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)25_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)25_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)25_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)25_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)25_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)25_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)25_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)25_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)25_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)25_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)25_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)25_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)25_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)25_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)25_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)25_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)25_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)25_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)25_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)25_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)25_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)25_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)25_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)25_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)25_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)25_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)25_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)25_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)25_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)25_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)25_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)25_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)25_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)25_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)25_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)25_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)25_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)25_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)25_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)25_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)25_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)25_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)25_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)25_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)26_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)26_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)26_SUM_LAST_N_MAX", "$(P,undefined)26_SUM_MAX" ) alias( "$(P,undefined)26_SUM_LAST_N_AVG", "$(P,undefined)26_SUM_AVG" ) alias( "$(P,undefined)26_SUM_LAST_N_MIN", "$(P,undefined)26_SUM_MIN" ) alias( "$(P,undefined)26_SUM_LAST_N_RMS", "$(P,undefined)26_SUM_RMS" ) alias( "$(P,undefined)26_SUM_LAST_N_STD", "$(P,undefined)26_SUM_STD" ) alias( "$(P,undefined)26_SUM_LAST_N_SLOPE", "$(P,undefined)26_SUM_SLOPE" ) alias( "$(P,undefined)26_SUM_LAST_N_OFFSET", "$(P,undefined)26_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)26_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)26_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)26_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)26_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)26_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)26_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)26_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)26_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)26_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)26_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)26_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)26_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)26_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)26_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)26_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)26_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)26_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)26_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)26_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)26_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)26_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)26_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)26_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)26_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)26_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)26_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)26_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)26_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)26_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)26_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)26_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)26_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)26_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)26_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)26_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)26_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)26_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)26_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)26_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)26_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)26_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)26_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)26_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)26_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)26_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)26_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)27_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)27_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)27_SUM_LAST_N_MAX", "$(P,undefined)27_SUM_MAX" ) alias( "$(P,undefined)27_SUM_LAST_N_AVG", "$(P,undefined)27_SUM_AVG" ) alias( "$(P,undefined)27_SUM_LAST_N_MIN", "$(P,undefined)27_SUM_MIN" ) alias( "$(P,undefined)27_SUM_LAST_N_RMS", "$(P,undefined)27_SUM_RMS" ) alias( "$(P,undefined)27_SUM_LAST_N_STD", "$(P,undefined)27_SUM_STD" ) alias( "$(P,undefined)27_SUM_LAST_N_SLOPE", "$(P,undefined)27_SUM_SLOPE" ) alias( "$(P,undefined)27_SUM_LAST_N_OFFSET", "$(P,undefined)27_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)27_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)27_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)27_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)27_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)27_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)27_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)27_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)27_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)27_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)27_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)27_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)27_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)27_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)27_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)27_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)27_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)27_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)27_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)27_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)27_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)27_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)27_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)27_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)27_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)27_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)27_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)27_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)27_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)27_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)27_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)27_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)27_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)27_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)27_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)27_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)27_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)27_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)27_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)27_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)27_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)27_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)27_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)27_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)27_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)27_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)27_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)28_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)28_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)28_SUM_LAST_N_MAX", "$(P,undefined)28_SUM_MAX" ) alias( "$(P,undefined)28_SUM_LAST_N_AVG", "$(P,undefined)28_SUM_AVG" ) alias( "$(P,undefined)28_SUM_LAST_N_MIN", "$(P,undefined)28_SUM_MIN" ) alias( "$(P,undefined)28_SUM_LAST_N_RMS", "$(P,undefined)28_SUM_RMS" ) alias( "$(P,undefined)28_SUM_LAST_N_STD", "$(P,undefined)28_SUM_STD" ) alias( "$(P,undefined)28_SUM_LAST_N_SLOPE", "$(P,undefined)28_SUM_SLOPE" ) alias( "$(P,undefined)28_SUM_LAST_N_OFFSET", "$(P,undefined)28_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)28_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)28_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)28_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)28_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)28_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)28_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)28_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)28_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)28_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)28_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)28_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)28_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)28_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)28_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)28_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)28_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)28_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)28_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)28_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)28_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)28_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)28_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)28_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)28_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)28_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)28_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)28_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)28_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)28_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)28_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)28_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)28_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)28_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)28_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)28_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)28_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)28_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)28_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)28_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)28_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)28_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)28_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)28_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)28_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)28_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)28_ONE_SEC_AVG_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)29_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)29_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)29_SUM_LAST_N_MAX", "$(P,undefined)29_SUM_MAX" ) alias( "$(P,undefined)29_SUM_LAST_N_AVG", "$(P,undefined)29_SUM_AVG" ) alias( "$(P,undefined)29_SUM_LAST_N_MIN", "$(P,undefined)29_SUM_MIN" ) alias( "$(P,undefined)29_SUM_LAST_N_RMS", "$(P,undefined)29_SUM_RMS" ) alias( "$(P,undefined)29_SUM_LAST_N_STD", "$(P,undefined)29_SUM_STD" ) alias( "$(P,undefined)29_SUM_LAST_N_SLOPE", "$(P,undefined)29_SUM_SLOPE" ) alias( "$(P,undefined)29_SUM_LAST_N_OFFSET", "$(P,undefined)29_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_SUM_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_SUM_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_SUM_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_SUM.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_SUM_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_SUM_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_SUM_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_SUM_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_SUM_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_SUM_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_SUM_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_SUM_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_SUM_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_SUM_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_SUM_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_SUM_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_SUM_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_SUM_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)29_ONE_SEC_SUM_LAST_N_MAX", "$(P,undefined)29_ONE_SEC_SUM_MAX" ) alias( "$(P,undefined)29_ONE_SEC_SUM_LAST_N_AVG", "$(P,undefined)29_ONE_SEC_SUM_AVG" ) alias( "$(P,undefined)29_ONE_SEC_SUM_LAST_N_MIN", "$(P,undefined)29_ONE_SEC_SUM_MIN" ) alias( "$(P,undefined)29_ONE_SEC_SUM_LAST_N_RMS", "$(P,undefined)29_ONE_SEC_SUM_RMS" ) alias( "$(P,undefined)29_ONE_SEC_SUM_LAST_N_STD", "$(P,undefined)29_ONE_SEC_SUM_STD" ) alias( "$(P,undefined)29_ONE_SEC_SUM_LAST_N_SLOPE", "$(P,undefined)29_ONE_SEC_SUM_SLOPE" ) alias( "$(P,undefined)29_ONE_SEC_SUM_LAST_N_OFFSET", "$(P,undefined)29_ONE_SEC_SUM_OFFSET" ) # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "LAST_N Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_LAST_N # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "0" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_LAST_N PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_LAST_N") { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_LAST_N:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "0" ) field( INPC, "0" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "N" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_LAST_N:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_LAST_N:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "N" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_1MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_1MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "60" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_1MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_1MIN") { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_1MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "1" ) field( INPC, "60" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "s" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_1MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_1MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "s" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_6MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_6MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "360" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_6MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_6MIN") { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_6MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "360" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_6MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_6MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "30MIN Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_30MIN # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_30MIN_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "1800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_30MIN PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_30MIN") { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_30MIN:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "1800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_30MIN:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_30MIN:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "1HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_1HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_1HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "3600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_1HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_1HR") { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_1HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "60" ) field( INPC, "3600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "min" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_1HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_1HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "min" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "6HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_6HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_6HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "21600" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_6HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_6HR") { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_6HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "21600" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_6HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_6HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "24HR Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_24HR # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_24HR_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "86400" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_24HR PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_24HR") { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_24HR:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "86400" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_24HR:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_24HR:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "3DAY Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_3DAY # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_3DAY_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "259200" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_3DAY PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_3DAY") { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_3DAY:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "3600" ) field( INPC, "259200" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "hr" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_3DAY:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_3DAY:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "hr" ) field(PREC, "3") } # # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_EGU - Conversion between seconds and X_EGU, e.g. 3600 for hrs # NAME - Name of this time period # DESC - Description of Time Period, default "WEEK Hist" # OUT - Name of waveform PV where history is written # Defaults to $(P,undefined)29_ONE_SEC_AVG_WEEK # # History asub # Monitors an scalar value and records it's history # over the specified time period. # The delay between samples is determined by the time # period divided by the size of the output array. # Inputs: # A - a single scalar value of type double # P - double publish interval in seconds (Use 0 for update on change) # T - double history interval in seconds (Use 0 for update on change) # Outputs: # A - Array of double's containing samples of A # taken over the last T seconds. # record( aSub, "$(P,undefined)29_ONE_SEC_AVG_WEEK_SUB" ) { field( DESC, "Keeps History of PV" ) field( SCAN, ".1 second" ) field( PINI, "NO" ) field( INAM, "History_Init" ) field( SNAM, "History_Process" ) field( EFLG, "ON CHANGE" ) field( FTA, "DOUBLE" ) field( NOA, 1 ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG CP NMS" ) field( FTP, "DOUBLE" ) field( NOP, 1 ) field( INPP, "0.1" ) field( FTT, "DOUBLE" ) field( NOT, 1 ) field( INPT, "604800" ) field( FTVA, "DOUBLE" ) field( NOVA, 300 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_WEEK PP" ) info( autosaveFields, "VALA NEA" ) } record( waveform, "$(P,undefined)29_ONE_SEC_AVG_WEEK") { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "$(P,undefined)29_ONE_SEC_AVG.TIME" ) info(autosaveFields, "VAL") } # Create an array of time coordinates in the specified units record(acalcout, "$(P,undefined)29_ONE_SEC_AVG_WEEK:CALCX") { field(DESC, "x-axis times") field( CALC, "(B>0)?(IX+1-A)*C/(A*B):(IX+1-A)" ) field(INPA, "300") field( INPB, "86400" ) field( INPC, "604800" ) field(NELM, "300") field(PINI, "YES") field(SCAN, "Passive") field( EGU, "days" ) field(PREC, "3") field( OUT, "$(P,undefined)29_ONE_SEC_AVG_WEEK:X-AXIS PP" ) } record(waveform, "$(P,undefined)29_ONE_SEC_AVG_WEEK:X-AXIS") { field(DESC, "x-axis times") field(SCAN, "Passive") field(DTYP, "Soft Channel") field(FTVL, "FLOAT") field(NELM, "300") field( EGU, "days" ) field(PREC, "3") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_1MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_1MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_6MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_6MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_30MIN_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_30MIN_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_1HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_1HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_6HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_6HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_24HR_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_24HR_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_3DAY_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_3DAY_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "$(P,undefined)29_ONE_SEC_AVG_WEEK_RMS_SUB" ) { field( DESC, "Calculate RMS for array" ) field( SCAN, "Passive" ) field( PINI, "NO" ) field( INAM, "RMS_Init" ) field( SNAM, "RMS_Process" ) field( FTA, "DOUBLE" ) field( NOA, "300" ) field( INPA, "$(P,undefined)29_ONE_SEC_AVG_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "$(P,undefined)29_ONE_SEC_AVG_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "$(P,undefined)29_ONE_SEC_AVG_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "$(P,undefined)29_ONE_SEC_AVG_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "$(P,undefined)29_ONE_SEC_AVG_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "$(P,undefined)29_ONE_SEC_AVG_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "$(P,undefined)29_ONE_SEC_AVG_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "$(P,undefined)29_ONE_SEC_AVG_WEEK_OFFSET PP" ) } record( ai, "$(P,undefined)29_ONE_SEC_AVG_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "$(P,undefined)29_ONE_SEC_AVG_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # In some screens, you want to say "display statistic X" without being too # particular about the data set. Use these aliases to hide that part of the PV alias( "$(P,undefined)29_ONE_SEC_AVG_LAST_N_MAX", "$(P,undefined)29_ONE_SEC_AVG_MAX" ) alias( "$(P,undefined)29_ONE_SEC_AVG_LAST_N_AVG", "$(P,undefined)29_ONE_SEC_AVG_AVG" ) alias( "$(P,undefined)29_ONE_SEC_AVG_LAST_N_MIN", "$(P,undefined)29_ONE_SEC_AVG_MIN" ) alias( "$(P,undefined)29_ONE_SEC_AVG_LAST_N_RMS", "$(P,undefined)29_ONE_SEC_AVG_RMS" ) alias( "$(P,undefined)29_ONE_SEC_AVG_LAST_N_STD", "$(P,undefined)29_ONE_SEC_AVG_STD" ) alias( "$(P,undefined)29_ONE_SEC_AVG_LAST_N_SLOPE", "$(P,undefined)29_ONE_SEC_AVG_SLOPE" ) alias( "$(P,undefined)29_ONE_SEC_AVG_LAST_N_OFFSET", "$(P,undefined)29_ONE_SEC_AVG_OFFSET" ) #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)0_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform0 CP") field(FLNK, "$(P,undefined)0_ACCUMULATE PP MS") field(OUT, "$(P,undefined)0_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)0_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)0_SUM") field(FLNK, "$(P,undefined)0_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)0_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)0_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)0_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)0_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)0_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)0_ACCUMULATE PP") field(DOL3, "$(P,undefined)0_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)0_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)0_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)0_ONE_SEC_SUM") { } record(calc, "$(P,undefined)0_ONE_SEC_AVG") { field(INPA, "$(P,undefined)0_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)0_CALC",20,6,0,0,"$(P,undefined)0_CALC") #! Field("$(P,undefined)0_CALC.INAA",16777215,1,"$(P,undefined)0_CALC.INAA") #! Field("$(P,undefined)0_CALC.FLNK",16777215,1,"$(P,undefined)0_CALC.FLNK") #! Link("$(P,undefined)0_CALC.FLNK","$(P,undefined)0_ACCUMULATE") #! Field("$(P,undefined)0_CALC.VAL",16777215,0,"$(P,undefined)0_CALC.VAL") #! Record("$(P,undefined)0_ACCUMULATE",280,16,0,0,"$(P,undefined)0_ACCUMULATE") #! Field("$(P,undefined)0_ACCUMULATE.VAL",16777215,1,"$(P,undefined)0_ACCUMULATE.VAL") #! Field("$(P,undefined)0_ACCUMULATE.INPA",16777215,0,"$(P,undefined)0_ACCUMULATE.INPA") #! Link("$(P,undefined)0_ACCUMULATE.INPA","$(P,undefined)0_CALC.VAL") #! Record("$(P,undefined)0_UPDATE_SUM",560,-12,0,1,"$(P,undefined)0_UPDATE_SUM") #! Field("$(P,undefined)0_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)0_UPDATE_SUM.DOL1") #! Link("$(P,undefined)0_UPDATE_SUM.DOL1","$(P,undefined)0_ACCUMULATE.VAL") #! Field("$(P,undefined)0_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)0_UPDATE_SUM.LNK1") #! Link("$(P,undefined)0_UPDATE_SUM.LNK1","$(P,undefined)0_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)0_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)0_UPDATE_SUM.LNK2") #! Link("$(P,undefined)0_UPDATE_SUM.LNK2","$(P,undefined)0_ACCUMULATE.VAL") #! Record("$(P,undefined)0_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)0_ONE_SEC_SUM") #! Field("$(P,undefined)0_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)0_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)1_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform1 CP") field(FLNK, "$(P,undefined)1_ACCUMULATE PP MS") field(OUT, "$(P,undefined)1_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)1_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)1_SUM") field(FLNK, "$(P,undefined)1_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)1_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)1_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)1_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)1_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)1_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)1_ACCUMULATE PP") field(DOL3, "$(P,undefined)1_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)1_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)1_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)1_ONE_SEC_SUM") { } record(calc, "$(P,undefined)1_ONE_SEC_AVG") { field(INPA, "$(P,undefined)1_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)1_CALC",20,6,0,0,"$(P,undefined)1_CALC") #! Field("$(P,undefined)1_CALC.INAA",16777215,1,"$(P,undefined)1_CALC.INAA") #! Field("$(P,undefined)1_CALC.FLNK",16777215,1,"$(P,undefined)1_CALC.FLNK") #! Link("$(P,undefined)1_CALC.FLNK","$(P,undefined)1_ACCUMULATE") #! Field("$(P,undefined)1_CALC.VAL",16777215,0,"$(P,undefined)1_CALC.VAL") #! Record("$(P,undefined)1_ACCUMULATE",280,16,0,0,"$(P,undefined)1_ACCUMULATE") #! Field("$(P,undefined)1_ACCUMULATE.VAL",16777215,1,"$(P,undefined)1_ACCUMULATE.VAL") #! Field("$(P,undefined)1_ACCUMULATE.INPA",16777215,0,"$(P,undefined)1_ACCUMULATE.INPA") #! Link("$(P,undefined)1_ACCUMULATE.INPA","$(P,undefined)1_CALC.VAL") #! Record("$(P,undefined)1_UPDATE_SUM",560,-12,0,1,"$(P,undefined)1_UPDATE_SUM") #! Field("$(P,undefined)1_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)1_UPDATE_SUM.DOL1") #! Link("$(P,undefined)1_UPDATE_SUM.DOL1","$(P,undefined)1_ACCUMULATE.VAL") #! Field("$(P,undefined)1_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)1_UPDATE_SUM.LNK1") #! Link("$(P,undefined)1_UPDATE_SUM.LNK1","$(P,undefined)1_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)1_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)1_UPDATE_SUM.LNK2") #! Link("$(P,undefined)1_UPDATE_SUM.LNK2","$(P,undefined)1_ACCUMULATE.VAL") #! Record("$(P,undefined)1_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)1_ONE_SEC_SUM") #! Field("$(P,undefined)1_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)1_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)2_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform2 CP") field(FLNK, "$(P,undefined)2_ACCUMULATE PP MS") field(OUT, "$(P,undefined)2_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)2_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)2_SUM") field(FLNK, "$(P,undefined)2_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)2_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)2_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)2_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)2_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)2_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)2_ACCUMULATE PP") field(DOL3, "$(P,undefined)2_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)2_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)2_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)2_ONE_SEC_SUM") { } record(calc, "$(P,undefined)2_ONE_SEC_AVG") { field(INPA, "$(P,undefined)2_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)2_CALC",20,6,0,0,"$(P,undefined)2_CALC") #! Field("$(P,undefined)2_CALC.INAA",16777215,1,"$(P,undefined)2_CALC.INAA") #! Field("$(P,undefined)2_CALC.FLNK",16777215,1,"$(P,undefined)2_CALC.FLNK") #! Link("$(P,undefined)2_CALC.FLNK","$(P,undefined)2_ACCUMULATE") #! Field("$(P,undefined)2_CALC.VAL",16777215,0,"$(P,undefined)2_CALC.VAL") #! Record("$(P,undefined)2_ACCUMULATE",280,16,0,0,"$(P,undefined)2_ACCUMULATE") #! Field("$(P,undefined)2_ACCUMULATE.VAL",16777215,1,"$(P,undefined)2_ACCUMULATE.VAL") #! Field("$(P,undefined)2_ACCUMULATE.INPA",16777215,0,"$(P,undefined)2_ACCUMULATE.INPA") #! Link("$(P,undefined)2_ACCUMULATE.INPA","$(P,undefined)2_CALC.VAL") #! Record("$(P,undefined)2_UPDATE_SUM",560,-12,0,1,"$(P,undefined)2_UPDATE_SUM") #! Field("$(P,undefined)2_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)2_UPDATE_SUM.DOL1") #! Link("$(P,undefined)2_UPDATE_SUM.DOL1","$(P,undefined)2_ACCUMULATE.VAL") #! Field("$(P,undefined)2_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)2_UPDATE_SUM.LNK1") #! Link("$(P,undefined)2_UPDATE_SUM.LNK1","$(P,undefined)2_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)2_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)2_UPDATE_SUM.LNK2") #! Link("$(P,undefined)2_UPDATE_SUM.LNK2","$(P,undefined)2_ACCUMULATE.VAL") #! Record("$(P,undefined)2_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)2_ONE_SEC_SUM") #! Field("$(P,undefined)2_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)2_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)3_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform3 CP") field(FLNK, "$(P,undefined)3_ACCUMULATE PP MS") field(OUT, "$(P,undefined)3_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)3_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)3_SUM") field(FLNK, "$(P,undefined)3_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)3_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)3_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)3_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)3_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)3_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)3_ACCUMULATE PP") field(DOL3, "$(P,undefined)3_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)3_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)3_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)3_ONE_SEC_SUM") { } record(calc, "$(P,undefined)3_ONE_SEC_AVG") { field(INPA, "$(P,undefined)3_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)3_CALC",20,6,0,0,"$(P,undefined)3_CALC") #! Field("$(P,undefined)3_CALC.INAA",16777215,1,"$(P,undefined)3_CALC.INAA") #! Field("$(P,undefined)3_CALC.FLNK",16777215,1,"$(P,undefined)3_CALC.FLNK") #! Link("$(P,undefined)3_CALC.FLNK","$(P,undefined)3_ACCUMULATE") #! Field("$(P,undefined)3_CALC.VAL",16777215,0,"$(P,undefined)3_CALC.VAL") #! Record("$(P,undefined)3_ACCUMULATE",280,16,0,0,"$(P,undefined)3_ACCUMULATE") #! Field("$(P,undefined)3_ACCUMULATE.VAL",16777215,1,"$(P,undefined)3_ACCUMULATE.VAL") #! Field("$(P,undefined)3_ACCUMULATE.INPA",16777215,0,"$(P,undefined)3_ACCUMULATE.INPA") #! Link("$(P,undefined)3_ACCUMULATE.INPA","$(P,undefined)3_CALC.VAL") #! Record("$(P,undefined)3_UPDATE_SUM",560,-12,0,1,"$(P,undefined)3_UPDATE_SUM") #! Field("$(P,undefined)3_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)3_UPDATE_SUM.DOL1") #! Link("$(P,undefined)3_UPDATE_SUM.DOL1","$(P,undefined)3_ACCUMULATE.VAL") #! Field("$(P,undefined)3_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)3_UPDATE_SUM.LNK1") #! Link("$(P,undefined)3_UPDATE_SUM.LNK1","$(P,undefined)3_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)3_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)3_UPDATE_SUM.LNK2") #! Link("$(P,undefined)3_UPDATE_SUM.LNK2","$(P,undefined)3_ACCUMULATE.VAL") #! Record("$(P,undefined)3_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)3_ONE_SEC_SUM") #! Field("$(P,undefined)3_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)3_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)4_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform4 CP") field(FLNK, "$(P,undefined)4_ACCUMULATE PP MS") field(OUT, "$(P,undefined)4_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)4_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)4_SUM") field(FLNK, "$(P,undefined)4_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)4_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)4_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)4_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)4_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)4_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)4_ACCUMULATE PP") field(DOL3, "$(P,undefined)4_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)4_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)4_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)4_ONE_SEC_SUM") { } record(calc, "$(P,undefined)4_ONE_SEC_AVG") { field(INPA, "$(P,undefined)4_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)4_CALC",20,6,0,0,"$(P,undefined)4_CALC") #! Field("$(P,undefined)4_CALC.INAA",16777215,1,"$(P,undefined)4_CALC.INAA") #! Field("$(P,undefined)4_CALC.FLNK",16777215,1,"$(P,undefined)4_CALC.FLNK") #! Link("$(P,undefined)4_CALC.FLNK","$(P,undefined)4_ACCUMULATE") #! Field("$(P,undefined)4_CALC.VAL",16777215,0,"$(P,undefined)4_CALC.VAL") #! Record("$(P,undefined)4_ACCUMULATE",280,16,0,0,"$(P,undefined)4_ACCUMULATE") #! Field("$(P,undefined)4_ACCUMULATE.VAL",16777215,1,"$(P,undefined)4_ACCUMULATE.VAL") #! Field("$(P,undefined)4_ACCUMULATE.INPA",16777215,0,"$(P,undefined)4_ACCUMULATE.INPA") #! Link("$(P,undefined)4_ACCUMULATE.INPA","$(P,undefined)4_CALC.VAL") #! Record("$(P,undefined)4_UPDATE_SUM",560,-12,0,1,"$(P,undefined)4_UPDATE_SUM") #! Field("$(P,undefined)4_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)4_UPDATE_SUM.DOL1") #! Link("$(P,undefined)4_UPDATE_SUM.DOL1","$(P,undefined)4_ACCUMULATE.VAL") #! Field("$(P,undefined)4_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)4_UPDATE_SUM.LNK1") #! Link("$(P,undefined)4_UPDATE_SUM.LNK1","$(P,undefined)4_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)4_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)4_UPDATE_SUM.LNK2") #! Link("$(P,undefined)4_UPDATE_SUM.LNK2","$(P,undefined)4_ACCUMULATE.VAL") #! Record("$(P,undefined)4_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)4_ONE_SEC_SUM") #! Field("$(P,undefined)4_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)4_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)5_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform5 CP") field(FLNK, "$(P,undefined)5_ACCUMULATE PP MS") field(OUT, "$(P,undefined)5_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)5_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)5_SUM") field(FLNK, "$(P,undefined)5_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)5_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)5_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)5_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)5_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)5_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)5_ACCUMULATE PP") field(DOL3, "$(P,undefined)5_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)5_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)5_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)5_ONE_SEC_SUM") { } record(calc, "$(P,undefined)5_ONE_SEC_AVG") { field(INPA, "$(P,undefined)5_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)5_CALC",20,6,0,0,"$(P,undefined)5_CALC") #! Field("$(P,undefined)5_CALC.INAA",16777215,1,"$(P,undefined)5_CALC.INAA") #! Field("$(P,undefined)5_CALC.FLNK",16777215,1,"$(P,undefined)5_CALC.FLNK") #! Link("$(P,undefined)5_CALC.FLNK","$(P,undefined)5_ACCUMULATE") #! Field("$(P,undefined)5_CALC.VAL",16777215,0,"$(P,undefined)5_CALC.VAL") #! Record("$(P,undefined)5_ACCUMULATE",280,16,0,0,"$(P,undefined)5_ACCUMULATE") #! Field("$(P,undefined)5_ACCUMULATE.VAL",16777215,1,"$(P,undefined)5_ACCUMULATE.VAL") #! Field("$(P,undefined)5_ACCUMULATE.INPA",16777215,0,"$(P,undefined)5_ACCUMULATE.INPA") #! Link("$(P,undefined)5_ACCUMULATE.INPA","$(P,undefined)5_CALC.VAL") #! Record("$(P,undefined)5_UPDATE_SUM",560,-12,0,1,"$(P,undefined)5_UPDATE_SUM") #! Field("$(P,undefined)5_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)5_UPDATE_SUM.DOL1") #! Link("$(P,undefined)5_UPDATE_SUM.DOL1","$(P,undefined)5_ACCUMULATE.VAL") #! Field("$(P,undefined)5_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)5_UPDATE_SUM.LNK1") #! Link("$(P,undefined)5_UPDATE_SUM.LNK1","$(P,undefined)5_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)5_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)5_UPDATE_SUM.LNK2") #! Link("$(P,undefined)5_UPDATE_SUM.LNK2","$(P,undefined)5_ACCUMULATE.VAL") #! Record("$(P,undefined)5_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)5_ONE_SEC_SUM") #! Field("$(P,undefined)5_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)5_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)6_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform6 CP") field(FLNK, "$(P,undefined)6_ACCUMULATE PP MS") field(OUT, "$(P,undefined)6_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)6_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)6_SUM") field(FLNK, "$(P,undefined)6_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)6_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)6_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)6_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)6_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)6_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)6_ACCUMULATE PP") field(DOL3, "$(P,undefined)6_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)6_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)6_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)6_ONE_SEC_SUM") { } record(calc, "$(P,undefined)6_ONE_SEC_AVG") { field(INPA, "$(P,undefined)6_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)6_CALC",20,6,0,0,"$(P,undefined)6_CALC") #! Field("$(P,undefined)6_CALC.INAA",16777215,1,"$(P,undefined)6_CALC.INAA") #! Field("$(P,undefined)6_CALC.FLNK",16777215,1,"$(P,undefined)6_CALC.FLNK") #! Link("$(P,undefined)6_CALC.FLNK","$(P,undefined)6_ACCUMULATE") #! Field("$(P,undefined)6_CALC.VAL",16777215,0,"$(P,undefined)6_CALC.VAL") #! Record("$(P,undefined)6_ACCUMULATE",280,16,0,0,"$(P,undefined)6_ACCUMULATE") #! Field("$(P,undefined)6_ACCUMULATE.VAL",16777215,1,"$(P,undefined)6_ACCUMULATE.VAL") #! Field("$(P,undefined)6_ACCUMULATE.INPA",16777215,0,"$(P,undefined)6_ACCUMULATE.INPA") #! Link("$(P,undefined)6_ACCUMULATE.INPA","$(P,undefined)6_CALC.VAL") #! Record("$(P,undefined)6_UPDATE_SUM",560,-12,0,1,"$(P,undefined)6_UPDATE_SUM") #! Field("$(P,undefined)6_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)6_UPDATE_SUM.DOL1") #! Link("$(P,undefined)6_UPDATE_SUM.DOL1","$(P,undefined)6_ACCUMULATE.VAL") #! Field("$(P,undefined)6_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)6_UPDATE_SUM.LNK1") #! Link("$(P,undefined)6_UPDATE_SUM.LNK1","$(P,undefined)6_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)6_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)6_UPDATE_SUM.LNK2") #! Link("$(P,undefined)6_UPDATE_SUM.LNK2","$(P,undefined)6_ACCUMULATE.VAL") #! Record("$(P,undefined)6_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)6_ONE_SEC_SUM") #! Field("$(P,undefined)6_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)6_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)7_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform7 CP") field(FLNK, "$(P,undefined)7_ACCUMULATE PP MS") field(OUT, "$(P,undefined)7_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)7_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)7_SUM") field(FLNK, "$(P,undefined)7_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)7_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)7_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)7_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)7_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)7_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)7_ACCUMULATE PP") field(DOL3, "$(P,undefined)7_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)7_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)7_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)7_ONE_SEC_SUM") { } record(calc, "$(P,undefined)7_ONE_SEC_AVG") { field(INPA, "$(P,undefined)7_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)7_CALC",20,6,0,0,"$(P,undefined)7_CALC") #! Field("$(P,undefined)7_CALC.INAA",16777215,1,"$(P,undefined)7_CALC.INAA") #! Field("$(P,undefined)7_CALC.FLNK",16777215,1,"$(P,undefined)7_CALC.FLNK") #! Link("$(P,undefined)7_CALC.FLNK","$(P,undefined)7_ACCUMULATE") #! Field("$(P,undefined)7_CALC.VAL",16777215,0,"$(P,undefined)7_CALC.VAL") #! Record("$(P,undefined)7_ACCUMULATE",280,16,0,0,"$(P,undefined)7_ACCUMULATE") #! Field("$(P,undefined)7_ACCUMULATE.VAL",16777215,1,"$(P,undefined)7_ACCUMULATE.VAL") #! Field("$(P,undefined)7_ACCUMULATE.INPA",16777215,0,"$(P,undefined)7_ACCUMULATE.INPA") #! Link("$(P,undefined)7_ACCUMULATE.INPA","$(P,undefined)7_CALC.VAL") #! Record("$(P,undefined)7_UPDATE_SUM",560,-12,0,1,"$(P,undefined)7_UPDATE_SUM") #! Field("$(P,undefined)7_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)7_UPDATE_SUM.DOL1") #! Link("$(P,undefined)7_UPDATE_SUM.DOL1","$(P,undefined)7_ACCUMULATE.VAL") #! Field("$(P,undefined)7_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)7_UPDATE_SUM.LNK1") #! Link("$(P,undefined)7_UPDATE_SUM.LNK1","$(P,undefined)7_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)7_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)7_UPDATE_SUM.LNK2") #! Link("$(P,undefined)7_UPDATE_SUM.LNK2","$(P,undefined)7_ACCUMULATE.VAL") #! Record("$(P,undefined)7_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)7_ONE_SEC_SUM") #! Field("$(P,undefined)7_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)7_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)8_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform8 CP") field(FLNK, "$(P,undefined)8_ACCUMULATE PP MS") field(OUT, "$(P,undefined)8_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)8_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)8_SUM") field(FLNK, "$(P,undefined)8_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)8_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)8_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)8_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)8_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)8_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)8_ACCUMULATE PP") field(DOL3, "$(P,undefined)8_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)8_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)8_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)8_ONE_SEC_SUM") { } record(calc, "$(P,undefined)8_ONE_SEC_AVG") { field(INPA, "$(P,undefined)8_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)8_CALC",20,6,0,0,"$(P,undefined)8_CALC") #! Field("$(P,undefined)8_CALC.INAA",16777215,1,"$(P,undefined)8_CALC.INAA") #! Field("$(P,undefined)8_CALC.FLNK",16777215,1,"$(P,undefined)8_CALC.FLNK") #! Link("$(P,undefined)8_CALC.FLNK","$(P,undefined)8_ACCUMULATE") #! Field("$(P,undefined)8_CALC.VAL",16777215,0,"$(P,undefined)8_CALC.VAL") #! Record("$(P,undefined)8_ACCUMULATE",280,16,0,0,"$(P,undefined)8_ACCUMULATE") #! Field("$(P,undefined)8_ACCUMULATE.VAL",16777215,1,"$(P,undefined)8_ACCUMULATE.VAL") #! Field("$(P,undefined)8_ACCUMULATE.INPA",16777215,0,"$(P,undefined)8_ACCUMULATE.INPA") #! Link("$(P,undefined)8_ACCUMULATE.INPA","$(P,undefined)8_CALC.VAL") #! Record("$(P,undefined)8_UPDATE_SUM",560,-12,0,1,"$(P,undefined)8_UPDATE_SUM") #! Field("$(P,undefined)8_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)8_UPDATE_SUM.DOL1") #! Link("$(P,undefined)8_UPDATE_SUM.DOL1","$(P,undefined)8_ACCUMULATE.VAL") #! Field("$(P,undefined)8_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)8_UPDATE_SUM.LNK1") #! Link("$(P,undefined)8_UPDATE_SUM.LNK1","$(P,undefined)8_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)8_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)8_UPDATE_SUM.LNK2") #! Link("$(P,undefined)8_UPDATE_SUM.LNK2","$(P,undefined)8_ACCUMULATE.VAL") #! Record("$(P,undefined)8_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)8_ONE_SEC_SUM") #! Field("$(P,undefined)8_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)8_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)9_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform9 CP") field(FLNK, "$(P,undefined)9_ACCUMULATE PP MS") field(OUT, "$(P,undefined)9_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)9_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)9_SUM") field(FLNK, "$(P,undefined)9_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)9_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)9_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)9_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)9_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)9_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)9_ACCUMULATE PP") field(DOL3, "$(P,undefined)9_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)9_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)9_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)9_ONE_SEC_SUM") { } record(calc, "$(P,undefined)9_ONE_SEC_AVG") { field(INPA, "$(P,undefined)9_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)9_CALC",20,6,0,0,"$(P,undefined)9_CALC") #! Field("$(P,undefined)9_CALC.INAA",16777215,1,"$(P,undefined)9_CALC.INAA") #! Field("$(P,undefined)9_CALC.FLNK",16777215,1,"$(P,undefined)9_CALC.FLNK") #! Link("$(P,undefined)9_CALC.FLNK","$(P,undefined)9_ACCUMULATE") #! Field("$(P,undefined)9_CALC.VAL",16777215,0,"$(P,undefined)9_CALC.VAL") #! Record("$(P,undefined)9_ACCUMULATE",280,16,0,0,"$(P,undefined)9_ACCUMULATE") #! Field("$(P,undefined)9_ACCUMULATE.VAL",16777215,1,"$(P,undefined)9_ACCUMULATE.VAL") #! Field("$(P,undefined)9_ACCUMULATE.INPA",16777215,0,"$(P,undefined)9_ACCUMULATE.INPA") #! Link("$(P,undefined)9_ACCUMULATE.INPA","$(P,undefined)9_CALC.VAL") #! Record("$(P,undefined)9_UPDATE_SUM",560,-12,0,1,"$(P,undefined)9_UPDATE_SUM") #! Field("$(P,undefined)9_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)9_UPDATE_SUM.DOL1") #! Link("$(P,undefined)9_UPDATE_SUM.DOL1","$(P,undefined)9_ACCUMULATE.VAL") #! Field("$(P,undefined)9_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)9_UPDATE_SUM.LNK1") #! Link("$(P,undefined)9_UPDATE_SUM.LNK1","$(P,undefined)9_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)9_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)9_UPDATE_SUM.LNK2") #! Link("$(P,undefined)9_UPDATE_SUM.LNK2","$(P,undefined)9_ACCUMULATE.VAL") #! Record("$(P,undefined)9_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)9_ONE_SEC_SUM") #! Field("$(P,undefined)9_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)9_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)10_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform10 CP") field(FLNK, "$(P,undefined)10_ACCUMULATE PP MS") field(OUT, "$(P,undefined)10_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)10_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)10_SUM") field(FLNK, "$(P,undefined)10_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)10_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)10_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)10_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)10_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)10_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)10_ACCUMULATE PP") field(DOL3, "$(P,undefined)10_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)10_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)10_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)10_ONE_SEC_SUM") { } record(calc, "$(P,undefined)10_ONE_SEC_AVG") { field(INPA, "$(P,undefined)10_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)10_CALC",20,6,0,0,"$(P,undefined)10_CALC") #! Field("$(P,undefined)10_CALC.INAA",16777215,1,"$(P,undefined)10_CALC.INAA") #! Field("$(P,undefined)10_CALC.FLNK",16777215,1,"$(P,undefined)10_CALC.FLNK") #! Link("$(P,undefined)10_CALC.FLNK","$(P,undefined)10_ACCUMULATE") #! Field("$(P,undefined)10_CALC.VAL",16777215,0,"$(P,undefined)10_CALC.VAL") #! Record("$(P,undefined)10_ACCUMULATE",280,16,0,0,"$(P,undefined)10_ACCUMULATE") #! Field("$(P,undefined)10_ACCUMULATE.VAL",16777215,1,"$(P,undefined)10_ACCUMULATE.VAL") #! Field("$(P,undefined)10_ACCUMULATE.INPA",16777215,0,"$(P,undefined)10_ACCUMULATE.INPA") #! Link("$(P,undefined)10_ACCUMULATE.INPA","$(P,undefined)10_CALC.VAL") #! Record("$(P,undefined)10_UPDATE_SUM",560,-12,0,1,"$(P,undefined)10_UPDATE_SUM") #! Field("$(P,undefined)10_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)10_UPDATE_SUM.DOL1") #! Link("$(P,undefined)10_UPDATE_SUM.DOL1","$(P,undefined)10_ACCUMULATE.VAL") #! Field("$(P,undefined)10_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)10_UPDATE_SUM.LNK1") #! Link("$(P,undefined)10_UPDATE_SUM.LNK1","$(P,undefined)10_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)10_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)10_UPDATE_SUM.LNK2") #! Link("$(P,undefined)10_UPDATE_SUM.LNK2","$(P,undefined)10_ACCUMULATE.VAL") #! Record("$(P,undefined)10_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)10_ONE_SEC_SUM") #! Field("$(P,undefined)10_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)10_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)11_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform11 CP") field(FLNK, "$(P,undefined)11_ACCUMULATE PP MS") field(OUT, "$(P,undefined)11_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)11_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)11_SUM") field(FLNK, "$(P,undefined)11_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)11_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)11_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)11_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)11_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)11_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)11_ACCUMULATE PP") field(DOL3, "$(P,undefined)11_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)11_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)11_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)11_ONE_SEC_SUM") { } record(calc, "$(P,undefined)11_ONE_SEC_AVG") { field(INPA, "$(P,undefined)11_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)11_CALC",20,6,0,0,"$(P,undefined)11_CALC") #! Field("$(P,undefined)11_CALC.INAA",16777215,1,"$(P,undefined)11_CALC.INAA") #! Field("$(P,undefined)11_CALC.FLNK",16777215,1,"$(P,undefined)11_CALC.FLNK") #! Link("$(P,undefined)11_CALC.FLNK","$(P,undefined)11_ACCUMULATE") #! Field("$(P,undefined)11_CALC.VAL",16777215,0,"$(P,undefined)11_CALC.VAL") #! Record("$(P,undefined)11_ACCUMULATE",280,16,0,0,"$(P,undefined)11_ACCUMULATE") #! Field("$(P,undefined)11_ACCUMULATE.VAL",16777215,1,"$(P,undefined)11_ACCUMULATE.VAL") #! Field("$(P,undefined)11_ACCUMULATE.INPA",16777215,0,"$(P,undefined)11_ACCUMULATE.INPA") #! Link("$(P,undefined)11_ACCUMULATE.INPA","$(P,undefined)11_CALC.VAL") #! Record("$(P,undefined)11_UPDATE_SUM",560,-12,0,1,"$(P,undefined)11_UPDATE_SUM") #! Field("$(P,undefined)11_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)11_UPDATE_SUM.DOL1") #! Link("$(P,undefined)11_UPDATE_SUM.DOL1","$(P,undefined)11_ACCUMULATE.VAL") #! Field("$(P,undefined)11_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)11_UPDATE_SUM.LNK1") #! Link("$(P,undefined)11_UPDATE_SUM.LNK1","$(P,undefined)11_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)11_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)11_UPDATE_SUM.LNK2") #! Link("$(P,undefined)11_UPDATE_SUM.LNK2","$(P,undefined)11_ACCUMULATE.VAL") #! Record("$(P,undefined)11_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)11_ONE_SEC_SUM") #! Field("$(P,undefined)11_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)11_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)12_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform12 CP") field(FLNK, "$(P,undefined)12_ACCUMULATE PP MS") field(OUT, "$(P,undefined)12_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)12_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)12_SUM") field(FLNK, "$(P,undefined)12_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)12_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)12_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)12_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)12_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)12_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)12_ACCUMULATE PP") field(DOL3, "$(P,undefined)12_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)12_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)12_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)12_ONE_SEC_SUM") { } record(calc, "$(P,undefined)12_ONE_SEC_AVG") { field(INPA, "$(P,undefined)12_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)12_CALC",20,6,0,0,"$(P,undefined)12_CALC") #! Field("$(P,undefined)12_CALC.INAA",16777215,1,"$(P,undefined)12_CALC.INAA") #! Field("$(P,undefined)12_CALC.FLNK",16777215,1,"$(P,undefined)12_CALC.FLNK") #! Link("$(P,undefined)12_CALC.FLNK","$(P,undefined)12_ACCUMULATE") #! Field("$(P,undefined)12_CALC.VAL",16777215,0,"$(P,undefined)12_CALC.VAL") #! Record("$(P,undefined)12_ACCUMULATE",280,16,0,0,"$(P,undefined)12_ACCUMULATE") #! Field("$(P,undefined)12_ACCUMULATE.VAL",16777215,1,"$(P,undefined)12_ACCUMULATE.VAL") #! Field("$(P,undefined)12_ACCUMULATE.INPA",16777215,0,"$(P,undefined)12_ACCUMULATE.INPA") #! Link("$(P,undefined)12_ACCUMULATE.INPA","$(P,undefined)12_CALC.VAL") #! Record("$(P,undefined)12_UPDATE_SUM",560,-12,0,1,"$(P,undefined)12_UPDATE_SUM") #! Field("$(P,undefined)12_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)12_UPDATE_SUM.DOL1") #! Link("$(P,undefined)12_UPDATE_SUM.DOL1","$(P,undefined)12_ACCUMULATE.VAL") #! Field("$(P,undefined)12_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)12_UPDATE_SUM.LNK1") #! Link("$(P,undefined)12_UPDATE_SUM.LNK1","$(P,undefined)12_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)12_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)12_UPDATE_SUM.LNK2") #! Link("$(P,undefined)12_UPDATE_SUM.LNK2","$(P,undefined)12_ACCUMULATE.VAL") #! Record("$(P,undefined)12_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)12_ONE_SEC_SUM") #! Field("$(P,undefined)12_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)12_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)13_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform13 CP") field(FLNK, "$(P,undefined)13_ACCUMULATE PP MS") field(OUT, "$(P,undefined)13_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)13_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)13_SUM") field(FLNK, "$(P,undefined)13_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)13_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)13_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)13_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)13_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)13_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)13_ACCUMULATE PP") field(DOL3, "$(P,undefined)13_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)13_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)13_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)13_ONE_SEC_SUM") { } record(calc, "$(P,undefined)13_ONE_SEC_AVG") { field(INPA, "$(P,undefined)13_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)13_CALC",20,6,0,0,"$(P,undefined)13_CALC") #! Field("$(P,undefined)13_CALC.INAA",16777215,1,"$(P,undefined)13_CALC.INAA") #! Field("$(P,undefined)13_CALC.FLNK",16777215,1,"$(P,undefined)13_CALC.FLNK") #! Link("$(P,undefined)13_CALC.FLNK","$(P,undefined)13_ACCUMULATE") #! Field("$(P,undefined)13_CALC.VAL",16777215,0,"$(P,undefined)13_CALC.VAL") #! Record("$(P,undefined)13_ACCUMULATE",280,16,0,0,"$(P,undefined)13_ACCUMULATE") #! Field("$(P,undefined)13_ACCUMULATE.VAL",16777215,1,"$(P,undefined)13_ACCUMULATE.VAL") #! Field("$(P,undefined)13_ACCUMULATE.INPA",16777215,0,"$(P,undefined)13_ACCUMULATE.INPA") #! Link("$(P,undefined)13_ACCUMULATE.INPA","$(P,undefined)13_CALC.VAL") #! Record("$(P,undefined)13_UPDATE_SUM",560,-12,0,1,"$(P,undefined)13_UPDATE_SUM") #! Field("$(P,undefined)13_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)13_UPDATE_SUM.DOL1") #! Link("$(P,undefined)13_UPDATE_SUM.DOL1","$(P,undefined)13_ACCUMULATE.VAL") #! Field("$(P,undefined)13_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)13_UPDATE_SUM.LNK1") #! Link("$(P,undefined)13_UPDATE_SUM.LNK1","$(P,undefined)13_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)13_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)13_UPDATE_SUM.LNK2") #! Link("$(P,undefined)13_UPDATE_SUM.LNK2","$(P,undefined)13_ACCUMULATE.VAL") #! Record("$(P,undefined)13_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)13_ONE_SEC_SUM") #! Field("$(P,undefined)13_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)13_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)14_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform14 CP") field(FLNK, "$(P,undefined)14_ACCUMULATE PP MS") field(OUT, "$(P,undefined)14_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)14_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)14_SUM") field(FLNK, "$(P,undefined)14_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)14_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)14_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)14_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)14_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)14_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)14_ACCUMULATE PP") field(DOL3, "$(P,undefined)14_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)14_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)14_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)14_ONE_SEC_SUM") { } record(calc, "$(P,undefined)14_ONE_SEC_AVG") { field(INPA, "$(P,undefined)14_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)14_CALC",20,6,0,0,"$(P,undefined)14_CALC") #! Field("$(P,undefined)14_CALC.INAA",16777215,1,"$(P,undefined)14_CALC.INAA") #! Field("$(P,undefined)14_CALC.FLNK",16777215,1,"$(P,undefined)14_CALC.FLNK") #! Link("$(P,undefined)14_CALC.FLNK","$(P,undefined)14_ACCUMULATE") #! Field("$(P,undefined)14_CALC.VAL",16777215,0,"$(P,undefined)14_CALC.VAL") #! Record("$(P,undefined)14_ACCUMULATE",280,16,0,0,"$(P,undefined)14_ACCUMULATE") #! Field("$(P,undefined)14_ACCUMULATE.VAL",16777215,1,"$(P,undefined)14_ACCUMULATE.VAL") #! Field("$(P,undefined)14_ACCUMULATE.INPA",16777215,0,"$(P,undefined)14_ACCUMULATE.INPA") #! Link("$(P,undefined)14_ACCUMULATE.INPA","$(P,undefined)14_CALC.VAL") #! Record("$(P,undefined)14_UPDATE_SUM",560,-12,0,1,"$(P,undefined)14_UPDATE_SUM") #! Field("$(P,undefined)14_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)14_UPDATE_SUM.DOL1") #! Link("$(P,undefined)14_UPDATE_SUM.DOL1","$(P,undefined)14_ACCUMULATE.VAL") #! Field("$(P,undefined)14_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)14_UPDATE_SUM.LNK1") #! Link("$(P,undefined)14_UPDATE_SUM.LNK1","$(P,undefined)14_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)14_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)14_UPDATE_SUM.LNK2") #! Link("$(P,undefined)14_UPDATE_SUM.LNK2","$(P,undefined)14_ACCUMULATE.VAL") #! Record("$(P,undefined)14_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)14_ONE_SEC_SUM") #! Field("$(P,undefined)14_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)14_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)15_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform15 CP") field(FLNK, "$(P,undefined)15_ACCUMULATE PP MS") field(OUT, "$(P,undefined)15_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)15_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)15_SUM") field(FLNK, "$(P,undefined)15_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)15_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)15_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)15_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)15_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)15_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)15_ACCUMULATE PP") field(DOL3, "$(P,undefined)15_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)15_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)15_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)15_ONE_SEC_SUM") { } record(calc, "$(P,undefined)15_ONE_SEC_AVG") { field(INPA, "$(P,undefined)15_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)15_CALC",20,6,0,0,"$(P,undefined)15_CALC") #! Field("$(P,undefined)15_CALC.INAA",16777215,1,"$(P,undefined)15_CALC.INAA") #! Field("$(P,undefined)15_CALC.FLNK",16777215,1,"$(P,undefined)15_CALC.FLNK") #! Link("$(P,undefined)15_CALC.FLNK","$(P,undefined)15_ACCUMULATE") #! Field("$(P,undefined)15_CALC.VAL",16777215,0,"$(P,undefined)15_CALC.VAL") #! Record("$(P,undefined)15_ACCUMULATE",280,16,0,0,"$(P,undefined)15_ACCUMULATE") #! Field("$(P,undefined)15_ACCUMULATE.VAL",16777215,1,"$(P,undefined)15_ACCUMULATE.VAL") #! Field("$(P,undefined)15_ACCUMULATE.INPA",16777215,0,"$(P,undefined)15_ACCUMULATE.INPA") #! Link("$(P,undefined)15_ACCUMULATE.INPA","$(P,undefined)15_CALC.VAL") #! Record("$(P,undefined)15_UPDATE_SUM",560,-12,0,1,"$(P,undefined)15_UPDATE_SUM") #! Field("$(P,undefined)15_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)15_UPDATE_SUM.DOL1") #! Link("$(P,undefined)15_UPDATE_SUM.DOL1","$(P,undefined)15_ACCUMULATE.VAL") #! Field("$(P,undefined)15_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)15_UPDATE_SUM.LNK1") #! Link("$(P,undefined)15_UPDATE_SUM.LNK1","$(P,undefined)15_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)15_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)15_UPDATE_SUM.LNK2") #! Link("$(P,undefined)15_UPDATE_SUM.LNK2","$(P,undefined)15_ACCUMULATE.VAL") #! Record("$(P,undefined)15_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)15_ONE_SEC_SUM") #! Field("$(P,undefined)15_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)15_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)16_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform16 CP") field(FLNK, "$(P,undefined)16_ACCUMULATE PP MS") field(OUT, "$(P,undefined)16_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)16_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)16_SUM") field(FLNK, "$(P,undefined)16_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)16_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)16_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)16_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)16_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)16_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)16_ACCUMULATE PP") field(DOL3, "$(P,undefined)16_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)16_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)16_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)16_ONE_SEC_SUM") { } record(calc, "$(P,undefined)16_ONE_SEC_AVG") { field(INPA, "$(P,undefined)16_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)16_CALC",20,6,0,0,"$(P,undefined)16_CALC") #! Field("$(P,undefined)16_CALC.INAA",16777215,1,"$(P,undefined)16_CALC.INAA") #! Field("$(P,undefined)16_CALC.FLNK",16777215,1,"$(P,undefined)16_CALC.FLNK") #! Link("$(P,undefined)16_CALC.FLNK","$(P,undefined)16_ACCUMULATE") #! Field("$(P,undefined)16_CALC.VAL",16777215,0,"$(P,undefined)16_CALC.VAL") #! Record("$(P,undefined)16_ACCUMULATE",280,16,0,0,"$(P,undefined)16_ACCUMULATE") #! Field("$(P,undefined)16_ACCUMULATE.VAL",16777215,1,"$(P,undefined)16_ACCUMULATE.VAL") #! Field("$(P,undefined)16_ACCUMULATE.INPA",16777215,0,"$(P,undefined)16_ACCUMULATE.INPA") #! Link("$(P,undefined)16_ACCUMULATE.INPA","$(P,undefined)16_CALC.VAL") #! Record("$(P,undefined)16_UPDATE_SUM",560,-12,0,1,"$(P,undefined)16_UPDATE_SUM") #! Field("$(P,undefined)16_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)16_UPDATE_SUM.DOL1") #! Link("$(P,undefined)16_UPDATE_SUM.DOL1","$(P,undefined)16_ACCUMULATE.VAL") #! Field("$(P,undefined)16_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)16_UPDATE_SUM.LNK1") #! Link("$(P,undefined)16_UPDATE_SUM.LNK1","$(P,undefined)16_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)16_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)16_UPDATE_SUM.LNK2") #! Link("$(P,undefined)16_UPDATE_SUM.LNK2","$(P,undefined)16_ACCUMULATE.VAL") #! Record("$(P,undefined)16_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)16_ONE_SEC_SUM") #! Field("$(P,undefined)16_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)16_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)17_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform17 CP") field(FLNK, "$(P,undefined)17_ACCUMULATE PP MS") field(OUT, "$(P,undefined)17_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)17_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)17_SUM") field(FLNK, "$(P,undefined)17_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)17_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)17_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)17_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)17_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)17_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)17_ACCUMULATE PP") field(DOL3, "$(P,undefined)17_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)17_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)17_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)17_ONE_SEC_SUM") { } record(calc, "$(P,undefined)17_ONE_SEC_AVG") { field(INPA, "$(P,undefined)17_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)17_CALC",20,6,0,0,"$(P,undefined)17_CALC") #! Field("$(P,undefined)17_CALC.INAA",16777215,1,"$(P,undefined)17_CALC.INAA") #! Field("$(P,undefined)17_CALC.FLNK",16777215,1,"$(P,undefined)17_CALC.FLNK") #! Link("$(P,undefined)17_CALC.FLNK","$(P,undefined)17_ACCUMULATE") #! Field("$(P,undefined)17_CALC.VAL",16777215,0,"$(P,undefined)17_CALC.VAL") #! Record("$(P,undefined)17_ACCUMULATE",280,16,0,0,"$(P,undefined)17_ACCUMULATE") #! Field("$(P,undefined)17_ACCUMULATE.VAL",16777215,1,"$(P,undefined)17_ACCUMULATE.VAL") #! Field("$(P,undefined)17_ACCUMULATE.INPA",16777215,0,"$(P,undefined)17_ACCUMULATE.INPA") #! Link("$(P,undefined)17_ACCUMULATE.INPA","$(P,undefined)17_CALC.VAL") #! Record("$(P,undefined)17_UPDATE_SUM",560,-12,0,1,"$(P,undefined)17_UPDATE_SUM") #! Field("$(P,undefined)17_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)17_UPDATE_SUM.DOL1") #! Link("$(P,undefined)17_UPDATE_SUM.DOL1","$(P,undefined)17_ACCUMULATE.VAL") #! Field("$(P,undefined)17_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)17_UPDATE_SUM.LNK1") #! Link("$(P,undefined)17_UPDATE_SUM.LNK1","$(P,undefined)17_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)17_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)17_UPDATE_SUM.LNK2") #! Link("$(P,undefined)17_UPDATE_SUM.LNK2","$(P,undefined)17_ACCUMULATE.VAL") #! Record("$(P,undefined)17_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)17_ONE_SEC_SUM") #! Field("$(P,undefined)17_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)17_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)18_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform18 CP") field(FLNK, "$(P,undefined)18_ACCUMULATE PP MS") field(OUT, "$(P,undefined)18_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)18_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)18_SUM") field(FLNK, "$(P,undefined)18_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)18_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)18_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)18_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)18_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)18_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)18_ACCUMULATE PP") field(DOL3, "$(P,undefined)18_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)18_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)18_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)18_ONE_SEC_SUM") { } record(calc, "$(P,undefined)18_ONE_SEC_AVG") { field(INPA, "$(P,undefined)18_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)18_CALC",20,6,0,0,"$(P,undefined)18_CALC") #! Field("$(P,undefined)18_CALC.INAA",16777215,1,"$(P,undefined)18_CALC.INAA") #! Field("$(P,undefined)18_CALC.FLNK",16777215,1,"$(P,undefined)18_CALC.FLNK") #! Link("$(P,undefined)18_CALC.FLNK","$(P,undefined)18_ACCUMULATE") #! Field("$(P,undefined)18_CALC.VAL",16777215,0,"$(P,undefined)18_CALC.VAL") #! Record("$(P,undefined)18_ACCUMULATE",280,16,0,0,"$(P,undefined)18_ACCUMULATE") #! Field("$(P,undefined)18_ACCUMULATE.VAL",16777215,1,"$(P,undefined)18_ACCUMULATE.VAL") #! Field("$(P,undefined)18_ACCUMULATE.INPA",16777215,0,"$(P,undefined)18_ACCUMULATE.INPA") #! Link("$(P,undefined)18_ACCUMULATE.INPA","$(P,undefined)18_CALC.VAL") #! Record("$(P,undefined)18_UPDATE_SUM",560,-12,0,1,"$(P,undefined)18_UPDATE_SUM") #! Field("$(P,undefined)18_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)18_UPDATE_SUM.DOL1") #! Link("$(P,undefined)18_UPDATE_SUM.DOL1","$(P,undefined)18_ACCUMULATE.VAL") #! Field("$(P,undefined)18_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)18_UPDATE_SUM.LNK1") #! Link("$(P,undefined)18_UPDATE_SUM.LNK1","$(P,undefined)18_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)18_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)18_UPDATE_SUM.LNK2") #! Link("$(P,undefined)18_UPDATE_SUM.LNK2","$(P,undefined)18_ACCUMULATE.VAL") #! Record("$(P,undefined)18_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)18_ONE_SEC_SUM") #! Field("$(P,undefined)18_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)18_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)19_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform19 CP") field(FLNK, "$(P,undefined)19_ACCUMULATE PP MS") field(OUT, "$(P,undefined)19_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)19_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)19_SUM") field(FLNK, "$(P,undefined)19_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)19_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)19_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)19_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)19_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)19_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)19_ACCUMULATE PP") field(DOL3, "$(P,undefined)19_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)19_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)19_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)19_ONE_SEC_SUM") { } record(calc, "$(P,undefined)19_ONE_SEC_AVG") { field(INPA, "$(P,undefined)19_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)19_CALC",20,6,0,0,"$(P,undefined)19_CALC") #! Field("$(P,undefined)19_CALC.INAA",16777215,1,"$(P,undefined)19_CALC.INAA") #! Field("$(P,undefined)19_CALC.FLNK",16777215,1,"$(P,undefined)19_CALC.FLNK") #! Link("$(P,undefined)19_CALC.FLNK","$(P,undefined)19_ACCUMULATE") #! Field("$(P,undefined)19_CALC.VAL",16777215,0,"$(P,undefined)19_CALC.VAL") #! Record("$(P,undefined)19_ACCUMULATE",280,16,0,0,"$(P,undefined)19_ACCUMULATE") #! Field("$(P,undefined)19_ACCUMULATE.VAL",16777215,1,"$(P,undefined)19_ACCUMULATE.VAL") #! Field("$(P,undefined)19_ACCUMULATE.INPA",16777215,0,"$(P,undefined)19_ACCUMULATE.INPA") #! Link("$(P,undefined)19_ACCUMULATE.INPA","$(P,undefined)19_CALC.VAL") #! Record("$(P,undefined)19_UPDATE_SUM",560,-12,0,1,"$(P,undefined)19_UPDATE_SUM") #! Field("$(P,undefined)19_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)19_UPDATE_SUM.DOL1") #! Link("$(P,undefined)19_UPDATE_SUM.DOL1","$(P,undefined)19_ACCUMULATE.VAL") #! Field("$(P,undefined)19_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)19_UPDATE_SUM.LNK1") #! Link("$(P,undefined)19_UPDATE_SUM.LNK1","$(P,undefined)19_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)19_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)19_UPDATE_SUM.LNK2") #! Link("$(P,undefined)19_UPDATE_SUM.LNK2","$(P,undefined)19_ACCUMULATE.VAL") #! Record("$(P,undefined)19_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)19_ONE_SEC_SUM") #! Field("$(P,undefined)19_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)19_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)20_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform20 CP") field(FLNK, "$(P,undefined)20_ACCUMULATE PP MS") field(OUT, "$(P,undefined)20_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)20_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)20_SUM") field(FLNK, "$(P,undefined)20_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)20_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)20_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)20_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)20_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)20_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)20_ACCUMULATE PP") field(DOL3, "$(P,undefined)20_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)20_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)20_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)20_ONE_SEC_SUM") { } record(calc, "$(P,undefined)20_ONE_SEC_AVG") { field(INPA, "$(P,undefined)20_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)20_CALC",20,6,0,0,"$(P,undefined)20_CALC") #! Field("$(P,undefined)20_CALC.INAA",16777215,1,"$(P,undefined)20_CALC.INAA") #! Field("$(P,undefined)20_CALC.FLNK",16777215,1,"$(P,undefined)20_CALC.FLNK") #! Link("$(P,undefined)20_CALC.FLNK","$(P,undefined)20_ACCUMULATE") #! Field("$(P,undefined)20_CALC.VAL",16777215,0,"$(P,undefined)20_CALC.VAL") #! Record("$(P,undefined)20_ACCUMULATE",280,16,0,0,"$(P,undefined)20_ACCUMULATE") #! Field("$(P,undefined)20_ACCUMULATE.VAL",16777215,1,"$(P,undefined)20_ACCUMULATE.VAL") #! Field("$(P,undefined)20_ACCUMULATE.INPA",16777215,0,"$(P,undefined)20_ACCUMULATE.INPA") #! Link("$(P,undefined)20_ACCUMULATE.INPA","$(P,undefined)20_CALC.VAL") #! Record("$(P,undefined)20_UPDATE_SUM",560,-12,0,1,"$(P,undefined)20_UPDATE_SUM") #! Field("$(P,undefined)20_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)20_UPDATE_SUM.DOL1") #! Link("$(P,undefined)20_UPDATE_SUM.DOL1","$(P,undefined)20_ACCUMULATE.VAL") #! Field("$(P,undefined)20_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)20_UPDATE_SUM.LNK1") #! Link("$(P,undefined)20_UPDATE_SUM.LNK1","$(P,undefined)20_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)20_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)20_UPDATE_SUM.LNK2") #! Link("$(P,undefined)20_UPDATE_SUM.LNK2","$(P,undefined)20_ACCUMULATE.VAL") #! Record("$(P,undefined)20_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)20_ONE_SEC_SUM") #! Field("$(P,undefined)20_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)20_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)21_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform21 CP") field(FLNK, "$(P,undefined)21_ACCUMULATE PP MS") field(OUT, "$(P,undefined)21_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)21_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)21_SUM") field(FLNK, "$(P,undefined)21_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)21_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)21_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)21_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)21_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)21_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)21_ACCUMULATE PP") field(DOL3, "$(P,undefined)21_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)21_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)21_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)21_ONE_SEC_SUM") { } record(calc, "$(P,undefined)21_ONE_SEC_AVG") { field(INPA, "$(P,undefined)21_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)21_CALC",20,6,0,0,"$(P,undefined)21_CALC") #! Field("$(P,undefined)21_CALC.INAA",16777215,1,"$(P,undefined)21_CALC.INAA") #! Field("$(P,undefined)21_CALC.FLNK",16777215,1,"$(P,undefined)21_CALC.FLNK") #! Link("$(P,undefined)21_CALC.FLNK","$(P,undefined)21_ACCUMULATE") #! Field("$(P,undefined)21_CALC.VAL",16777215,0,"$(P,undefined)21_CALC.VAL") #! Record("$(P,undefined)21_ACCUMULATE",280,16,0,0,"$(P,undefined)21_ACCUMULATE") #! Field("$(P,undefined)21_ACCUMULATE.VAL",16777215,1,"$(P,undefined)21_ACCUMULATE.VAL") #! Field("$(P,undefined)21_ACCUMULATE.INPA",16777215,0,"$(P,undefined)21_ACCUMULATE.INPA") #! Link("$(P,undefined)21_ACCUMULATE.INPA","$(P,undefined)21_CALC.VAL") #! Record("$(P,undefined)21_UPDATE_SUM",560,-12,0,1,"$(P,undefined)21_UPDATE_SUM") #! Field("$(P,undefined)21_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)21_UPDATE_SUM.DOL1") #! Link("$(P,undefined)21_UPDATE_SUM.DOL1","$(P,undefined)21_ACCUMULATE.VAL") #! Field("$(P,undefined)21_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)21_UPDATE_SUM.LNK1") #! Link("$(P,undefined)21_UPDATE_SUM.LNK1","$(P,undefined)21_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)21_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)21_UPDATE_SUM.LNK2") #! Link("$(P,undefined)21_UPDATE_SUM.LNK2","$(P,undefined)21_ACCUMULATE.VAL") #! Record("$(P,undefined)21_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)21_ONE_SEC_SUM") #! Field("$(P,undefined)21_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)21_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)22_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform22 CP") field(FLNK, "$(P,undefined)22_ACCUMULATE PP MS") field(OUT, "$(P,undefined)22_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)22_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)22_SUM") field(FLNK, "$(P,undefined)22_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)22_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)22_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)22_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)22_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)22_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)22_ACCUMULATE PP") field(DOL3, "$(P,undefined)22_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)22_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)22_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)22_ONE_SEC_SUM") { } record(calc, "$(P,undefined)22_ONE_SEC_AVG") { field(INPA, "$(P,undefined)22_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)22_CALC",20,6,0,0,"$(P,undefined)22_CALC") #! Field("$(P,undefined)22_CALC.INAA",16777215,1,"$(P,undefined)22_CALC.INAA") #! Field("$(P,undefined)22_CALC.FLNK",16777215,1,"$(P,undefined)22_CALC.FLNK") #! Link("$(P,undefined)22_CALC.FLNK","$(P,undefined)22_ACCUMULATE") #! Field("$(P,undefined)22_CALC.VAL",16777215,0,"$(P,undefined)22_CALC.VAL") #! Record("$(P,undefined)22_ACCUMULATE",280,16,0,0,"$(P,undefined)22_ACCUMULATE") #! Field("$(P,undefined)22_ACCUMULATE.VAL",16777215,1,"$(P,undefined)22_ACCUMULATE.VAL") #! Field("$(P,undefined)22_ACCUMULATE.INPA",16777215,0,"$(P,undefined)22_ACCUMULATE.INPA") #! Link("$(P,undefined)22_ACCUMULATE.INPA","$(P,undefined)22_CALC.VAL") #! Record("$(P,undefined)22_UPDATE_SUM",560,-12,0,1,"$(P,undefined)22_UPDATE_SUM") #! Field("$(P,undefined)22_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)22_UPDATE_SUM.DOL1") #! Link("$(P,undefined)22_UPDATE_SUM.DOL1","$(P,undefined)22_ACCUMULATE.VAL") #! Field("$(P,undefined)22_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)22_UPDATE_SUM.LNK1") #! Link("$(P,undefined)22_UPDATE_SUM.LNK1","$(P,undefined)22_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)22_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)22_UPDATE_SUM.LNK2") #! Link("$(P,undefined)22_UPDATE_SUM.LNK2","$(P,undefined)22_ACCUMULATE.VAL") #! Record("$(P,undefined)22_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)22_ONE_SEC_SUM") #! Field("$(P,undefined)22_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)22_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)23_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform23 CP") field(FLNK, "$(P,undefined)23_ACCUMULATE PP MS") field(OUT, "$(P,undefined)23_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)23_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)23_SUM") field(FLNK, "$(P,undefined)23_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)23_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)23_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)23_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)23_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)23_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)23_ACCUMULATE PP") field(DOL3, "$(P,undefined)23_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)23_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)23_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)23_ONE_SEC_SUM") { } record(calc, "$(P,undefined)23_ONE_SEC_AVG") { field(INPA, "$(P,undefined)23_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)23_CALC",20,6,0,0,"$(P,undefined)23_CALC") #! Field("$(P,undefined)23_CALC.INAA",16777215,1,"$(P,undefined)23_CALC.INAA") #! Field("$(P,undefined)23_CALC.FLNK",16777215,1,"$(P,undefined)23_CALC.FLNK") #! Link("$(P,undefined)23_CALC.FLNK","$(P,undefined)23_ACCUMULATE") #! Field("$(P,undefined)23_CALC.VAL",16777215,0,"$(P,undefined)23_CALC.VAL") #! Record("$(P,undefined)23_ACCUMULATE",280,16,0,0,"$(P,undefined)23_ACCUMULATE") #! Field("$(P,undefined)23_ACCUMULATE.VAL",16777215,1,"$(P,undefined)23_ACCUMULATE.VAL") #! Field("$(P,undefined)23_ACCUMULATE.INPA",16777215,0,"$(P,undefined)23_ACCUMULATE.INPA") #! Link("$(P,undefined)23_ACCUMULATE.INPA","$(P,undefined)23_CALC.VAL") #! Record("$(P,undefined)23_UPDATE_SUM",560,-12,0,1,"$(P,undefined)23_UPDATE_SUM") #! Field("$(P,undefined)23_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)23_UPDATE_SUM.DOL1") #! Link("$(P,undefined)23_UPDATE_SUM.DOL1","$(P,undefined)23_ACCUMULATE.VAL") #! Field("$(P,undefined)23_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)23_UPDATE_SUM.LNK1") #! Link("$(P,undefined)23_UPDATE_SUM.LNK1","$(P,undefined)23_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)23_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)23_UPDATE_SUM.LNK2") #! Link("$(P,undefined)23_UPDATE_SUM.LNK2","$(P,undefined)23_ACCUMULATE.VAL") #! Record("$(P,undefined)23_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)23_ONE_SEC_SUM") #! Field("$(P,undefined)23_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)23_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)24_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform24 CP") field(FLNK, "$(P,undefined)24_ACCUMULATE PP MS") field(OUT, "$(P,undefined)24_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)24_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)24_SUM") field(FLNK, "$(P,undefined)24_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)24_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)24_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)24_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)24_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)24_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)24_ACCUMULATE PP") field(DOL3, "$(P,undefined)24_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)24_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)24_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)24_ONE_SEC_SUM") { } record(calc, "$(P,undefined)24_ONE_SEC_AVG") { field(INPA, "$(P,undefined)24_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)24_CALC",20,6,0,0,"$(P,undefined)24_CALC") #! Field("$(P,undefined)24_CALC.INAA",16777215,1,"$(P,undefined)24_CALC.INAA") #! Field("$(P,undefined)24_CALC.FLNK",16777215,1,"$(P,undefined)24_CALC.FLNK") #! Link("$(P,undefined)24_CALC.FLNK","$(P,undefined)24_ACCUMULATE") #! Field("$(P,undefined)24_CALC.VAL",16777215,0,"$(P,undefined)24_CALC.VAL") #! Record("$(P,undefined)24_ACCUMULATE",280,16,0,0,"$(P,undefined)24_ACCUMULATE") #! Field("$(P,undefined)24_ACCUMULATE.VAL",16777215,1,"$(P,undefined)24_ACCUMULATE.VAL") #! Field("$(P,undefined)24_ACCUMULATE.INPA",16777215,0,"$(P,undefined)24_ACCUMULATE.INPA") #! Link("$(P,undefined)24_ACCUMULATE.INPA","$(P,undefined)24_CALC.VAL") #! Record("$(P,undefined)24_UPDATE_SUM",560,-12,0,1,"$(P,undefined)24_UPDATE_SUM") #! Field("$(P,undefined)24_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)24_UPDATE_SUM.DOL1") #! Link("$(P,undefined)24_UPDATE_SUM.DOL1","$(P,undefined)24_ACCUMULATE.VAL") #! Field("$(P,undefined)24_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)24_UPDATE_SUM.LNK1") #! Link("$(P,undefined)24_UPDATE_SUM.LNK1","$(P,undefined)24_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)24_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)24_UPDATE_SUM.LNK2") #! Link("$(P,undefined)24_UPDATE_SUM.LNK2","$(P,undefined)24_ACCUMULATE.VAL") #! Record("$(P,undefined)24_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)24_ONE_SEC_SUM") #! Field("$(P,undefined)24_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)24_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)25_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform25 CP") field(FLNK, "$(P,undefined)25_ACCUMULATE PP MS") field(OUT, "$(P,undefined)25_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)25_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)25_SUM") field(FLNK, "$(P,undefined)25_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)25_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)25_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)25_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)25_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)25_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)25_ACCUMULATE PP") field(DOL3, "$(P,undefined)25_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)25_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)25_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)25_ONE_SEC_SUM") { } record(calc, "$(P,undefined)25_ONE_SEC_AVG") { field(INPA, "$(P,undefined)25_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)25_CALC",20,6,0,0,"$(P,undefined)25_CALC") #! Field("$(P,undefined)25_CALC.INAA",16777215,1,"$(P,undefined)25_CALC.INAA") #! Field("$(P,undefined)25_CALC.FLNK",16777215,1,"$(P,undefined)25_CALC.FLNK") #! Link("$(P,undefined)25_CALC.FLNK","$(P,undefined)25_ACCUMULATE") #! Field("$(P,undefined)25_CALC.VAL",16777215,0,"$(P,undefined)25_CALC.VAL") #! Record("$(P,undefined)25_ACCUMULATE",280,16,0,0,"$(P,undefined)25_ACCUMULATE") #! Field("$(P,undefined)25_ACCUMULATE.VAL",16777215,1,"$(P,undefined)25_ACCUMULATE.VAL") #! Field("$(P,undefined)25_ACCUMULATE.INPA",16777215,0,"$(P,undefined)25_ACCUMULATE.INPA") #! Link("$(P,undefined)25_ACCUMULATE.INPA","$(P,undefined)25_CALC.VAL") #! Record("$(P,undefined)25_UPDATE_SUM",560,-12,0,1,"$(P,undefined)25_UPDATE_SUM") #! Field("$(P,undefined)25_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)25_UPDATE_SUM.DOL1") #! Link("$(P,undefined)25_UPDATE_SUM.DOL1","$(P,undefined)25_ACCUMULATE.VAL") #! Field("$(P,undefined)25_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)25_UPDATE_SUM.LNK1") #! Link("$(P,undefined)25_UPDATE_SUM.LNK1","$(P,undefined)25_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)25_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)25_UPDATE_SUM.LNK2") #! Link("$(P,undefined)25_UPDATE_SUM.LNK2","$(P,undefined)25_ACCUMULATE.VAL") #! Record("$(P,undefined)25_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)25_ONE_SEC_SUM") #! Field("$(P,undefined)25_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)25_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)26_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform26 CP") field(FLNK, "$(P,undefined)26_ACCUMULATE PP MS") field(OUT, "$(P,undefined)26_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)26_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)26_SUM") field(FLNK, "$(P,undefined)26_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)26_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)26_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)26_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)26_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)26_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)26_ACCUMULATE PP") field(DOL3, "$(P,undefined)26_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)26_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)26_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)26_ONE_SEC_SUM") { } record(calc, "$(P,undefined)26_ONE_SEC_AVG") { field(INPA, "$(P,undefined)26_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)26_CALC",20,6,0,0,"$(P,undefined)26_CALC") #! Field("$(P,undefined)26_CALC.INAA",16777215,1,"$(P,undefined)26_CALC.INAA") #! Field("$(P,undefined)26_CALC.FLNK",16777215,1,"$(P,undefined)26_CALC.FLNK") #! Link("$(P,undefined)26_CALC.FLNK","$(P,undefined)26_ACCUMULATE") #! Field("$(P,undefined)26_CALC.VAL",16777215,0,"$(P,undefined)26_CALC.VAL") #! Record("$(P,undefined)26_ACCUMULATE",280,16,0,0,"$(P,undefined)26_ACCUMULATE") #! Field("$(P,undefined)26_ACCUMULATE.VAL",16777215,1,"$(P,undefined)26_ACCUMULATE.VAL") #! Field("$(P,undefined)26_ACCUMULATE.INPA",16777215,0,"$(P,undefined)26_ACCUMULATE.INPA") #! Link("$(P,undefined)26_ACCUMULATE.INPA","$(P,undefined)26_CALC.VAL") #! Record("$(P,undefined)26_UPDATE_SUM",560,-12,0,1,"$(P,undefined)26_UPDATE_SUM") #! Field("$(P,undefined)26_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)26_UPDATE_SUM.DOL1") #! Link("$(P,undefined)26_UPDATE_SUM.DOL1","$(P,undefined)26_ACCUMULATE.VAL") #! Field("$(P,undefined)26_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)26_UPDATE_SUM.LNK1") #! Link("$(P,undefined)26_UPDATE_SUM.LNK1","$(P,undefined)26_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)26_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)26_UPDATE_SUM.LNK2") #! Link("$(P,undefined)26_UPDATE_SUM.LNK2","$(P,undefined)26_ACCUMULATE.VAL") #! Record("$(P,undefined)26_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)26_ONE_SEC_SUM") #! Field("$(P,undefined)26_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)26_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)27_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform27 CP") field(FLNK, "$(P,undefined)27_ACCUMULATE PP MS") field(OUT, "$(P,undefined)27_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)27_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)27_SUM") field(FLNK, "$(P,undefined)27_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)27_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)27_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)27_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)27_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)27_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)27_ACCUMULATE PP") field(DOL3, "$(P,undefined)27_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)27_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)27_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)27_ONE_SEC_SUM") { } record(calc, "$(P,undefined)27_ONE_SEC_AVG") { field(INPA, "$(P,undefined)27_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)27_CALC",20,6,0,0,"$(P,undefined)27_CALC") #! Field("$(P,undefined)27_CALC.INAA",16777215,1,"$(P,undefined)27_CALC.INAA") #! Field("$(P,undefined)27_CALC.FLNK",16777215,1,"$(P,undefined)27_CALC.FLNK") #! Link("$(P,undefined)27_CALC.FLNK","$(P,undefined)27_ACCUMULATE") #! Field("$(P,undefined)27_CALC.VAL",16777215,0,"$(P,undefined)27_CALC.VAL") #! Record("$(P,undefined)27_ACCUMULATE",280,16,0,0,"$(P,undefined)27_ACCUMULATE") #! Field("$(P,undefined)27_ACCUMULATE.VAL",16777215,1,"$(P,undefined)27_ACCUMULATE.VAL") #! Field("$(P,undefined)27_ACCUMULATE.INPA",16777215,0,"$(P,undefined)27_ACCUMULATE.INPA") #! Link("$(P,undefined)27_ACCUMULATE.INPA","$(P,undefined)27_CALC.VAL") #! Record("$(P,undefined)27_UPDATE_SUM",560,-12,0,1,"$(P,undefined)27_UPDATE_SUM") #! Field("$(P,undefined)27_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)27_UPDATE_SUM.DOL1") #! Link("$(P,undefined)27_UPDATE_SUM.DOL1","$(P,undefined)27_ACCUMULATE.VAL") #! Field("$(P,undefined)27_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)27_UPDATE_SUM.LNK1") #! Link("$(P,undefined)27_UPDATE_SUM.LNK1","$(P,undefined)27_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)27_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)27_UPDATE_SUM.LNK2") #! Link("$(P,undefined)27_UPDATE_SUM.LNK2","$(P,undefined)27_ACCUMULATE.VAL") #! Record("$(P,undefined)27_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)27_ONE_SEC_SUM") #! Field("$(P,undefined)27_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)27_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)28_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform28 CP") field(FLNK, "$(P,undefined)28_ACCUMULATE PP MS") field(OUT, "$(P,undefined)28_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)28_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)28_SUM") field(FLNK, "$(P,undefined)28_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)28_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)28_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)28_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)28_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)28_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)28_ACCUMULATE PP") field(DOL3, "$(P,undefined)28_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)28_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)28_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)28_ONE_SEC_SUM") { } record(calc, "$(P,undefined)28_ONE_SEC_AVG") { field(INPA, "$(P,undefined)28_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)28_CALC",20,6,0,0,"$(P,undefined)28_CALC") #! Field("$(P,undefined)28_CALC.INAA",16777215,1,"$(P,undefined)28_CALC.INAA") #! Field("$(P,undefined)28_CALC.FLNK",16777215,1,"$(P,undefined)28_CALC.FLNK") #! Link("$(P,undefined)28_CALC.FLNK","$(P,undefined)28_ACCUMULATE") #! Field("$(P,undefined)28_CALC.VAL",16777215,0,"$(P,undefined)28_CALC.VAL") #! Record("$(P,undefined)28_ACCUMULATE",280,16,0,0,"$(P,undefined)28_ACCUMULATE") #! Field("$(P,undefined)28_ACCUMULATE.VAL",16777215,1,"$(P,undefined)28_ACCUMULATE.VAL") #! Field("$(P,undefined)28_ACCUMULATE.INPA",16777215,0,"$(P,undefined)28_ACCUMULATE.INPA") #! Link("$(P,undefined)28_ACCUMULATE.INPA","$(P,undefined)28_CALC.VAL") #! Record("$(P,undefined)28_UPDATE_SUM",560,-12,0,1,"$(P,undefined)28_UPDATE_SUM") #! Field("$(P,undefined)28_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)28_UPDATE_SUM.DOL1") #! Link("$(P,undefined)28_UPDATE_SUM.DOL1","$(P,undefined)28_ACCUMULATE.VAL") #! Field("$(P,undefined)28_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)28_UPDATE_SUM.LNK1") #! Link("$(P,undefined)28_UPDATE_SUM.LNK1","$(P,undefined)28_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)28_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)28_UPDATE_SUM.LNK2") #! Link("$(P,undefined)28_UPDATE_SUM.LNK2","$(P,undefined)28_ACCUMULATE.VAL") #! Record("$(P,undefined)28_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)28_ONE_SEC_SUM") #! Field("$(P,undefined)28_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)28_ONE_SEC_SUM.VAL") #! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(acalcout, "$(P,undefined)29_SUM") { field(DESC, "General math on an input") field(PREC, "4") field(NELM, "10000") field(NUSE, "512") field(SIZE, "NUSE") field(INAA, "$(P,undefined)waveform29 CP") field(FLNK, "$(P,undefined)29_ACCUMULATE PP MS") field(OUT, "$(P,undefined)29_ACCUMULATE.A") field(CALC, "SUM(AA[0,200])") info( autosaveFields, "DESC PREC NELM NUSE SIZE INAA CALC") } record(calc, "$(P,undefined)29_ACCUMULATE") { field(CALC, "A+VAL") field(INPA, "$(P,undefined)29_SUM") field(FLNK, "$(P,undefined)29_WF_COUNT PP MS") info( autosaveFields, "DESC PREC CALC") } record(calc, "$(P,undefined)29_WF_COUNT") { field(CALC, "1+VAL") field(INPA, "$(P,undefined)29_SUM") info( autosaveFields, "DESC PREC CALC") } record(seq, "$(P,undefined)29_UPDATE_SUM") { field(SCAN, "2 second") field(DOL1, "$(P,undefined)29_ACCUMULATE NPP NMS") field(LNK1, "$(P,undefined)29_ONE_SEC_SUM PP") field(DOL2, "0") field(LNK2, "$(P,undefined)29_ACCUMULATE PP") field(DOL3, "$(P,undefined)29_WF_COUNT NPP NMS") field(LNK3, "$(P,undefined)29_ONE_SEC_AVG.B PP") field(DOL4, "0") field(LNK4, "$(P,undefined)29_WF_COUNT PP") info( autosaveFields, "SCAN") } record(ai, "$(P,undefined)29_ONE_SEC_SUM") { } record(calc, "$(P,undefined)29_ONE_SEC_AVG") { field(INPA, "$(P,undefined)29_ONE_SEC_SUM") field(CALC, "A/B") info( autosaveFields, "DESC PREC CALC") } #! Further lines contain data used by VisualDCT #! View(0,0,1.0) #! Record("$(P,undefined)29_CALC",20,6,0,0,"$(P,undefined)29_CALC") #! Field("$(P,undefined)29_CALC.INAA",16777215,1,"$(P,undefined)29_CALC.INAA") #! Field("$(P,undefined)29_CALC.FLNK",16777215,1,"$(P,undefined)29_CALC.FLNK") #! Link("$(P,undefined)29_CALC.FLNK","$(P,undefined)29_ACCUMULATE") #! Field("$(P,undefined)29_CALC.VAL",16777215,0,"$(P,undefined)29_CALC.VAL") #! Record("$(P,undefined)29_ACCUMULATE",280,16,0,0,"$(P,undefined)29_ACCUMULATE") #! Field("$(P,undefined)29_ACCUMULATE.VAL",16777215,1,"$(P,undefined)29_ACCUMULATE.VAL") #! Field("$(P,undefined)29_ACCUMULATE.INPA",16777215,0,"$(P,undefined)29_ACCUMULATE.INPA") #! Link("$(P,undefined)29_ACCUMULATE.INPA","$(P,undefined)29_CALC.VAL") #! Record("$(P,undefined)29_UPDATE_SUM",560,-12,0,1,"$(P,undefined)29_UPDATE_SUM") #! Field("$(P,undefined)29_UPDATE_SUM.DOL1",16777215,0,"$(P,undefined)29_UPDATE_SUM.DOL1") #! Link("$(P,undefined)29_UPDATE_SUM.DOL1","$(P,undefined)29_ACCUMULATE.VAL") #! Field("$(P,undefined)29_UPDATE_SUM.LNK1",16777215,1,"$(P,undefined)29_UPDATE_SUM.LNK1") #! Link("$(P,undefined)29_UPDATE_SUM.LNK1","$(P,undefined)29_ONE_SEC_SUM.VAL") #! Field("$(P,undefined)29_UPDATE_SUM.LNK2",16777215,0,"$(P,undefined)29_UPDATE_SUM.LNK2") #! Link("$(P,undefined)29_UPDATE_SUM.LNK2","$(P,undefined)29_ACCUMULATE.VAL") #! Record("$(P,undefined)29_ONE_SEC_SUM",580,263,0,1,"$(P,undefined)29_ONE_SEC_SUM") #! Field("$(P,undefined)29_ONE_SEC_SUM.VAL",16777215,1,"$(P,undefined)29_ONE_SEC_SUM.VAL")